UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer vivabbk
Observer
2,286 Views
Registered: ‎11-05-2010

On MFS image's size

Hi everyone,

 

While using Xilinx MFS(Memory file system), I meet a problem:

 

There's a directory DIR, which contains 3 files, F1,F2 and F3.

 

By using "mfsgen -cvbfs ../image.mfs 2000 *" under XMD , I can make a image of directory DIR.

 

Then using mfs_ls() in C program, it is supposed to be a file list as below:

F1  

F2

F3

 

If the image.mfs file's size <1M,  I can get what I want.

But if the image.mfs file size is larger than 1M, there will be no output for mfs_ls().

 

Can anyone help me?

 

Thanks,

Allen

 

0 Kudos
2 Replies
Newbie felding
Newbie
2,076 Views
Registered: ‎03-27-2013

Re: On MFS image's size

Hi, actually you can get  the target image.mfs file's size by many ways, one is use a image resize program to change the size, and also you can work out your own code to get the target image, and i'd like to share a image resize sample code here 

private static Image ResizeImage(Image imgToResize, Size size)
{
Bitmap LoadImage = new Bitmap(@"C:\\1.bmp");
Size newsize = new size (width, height);
e.g. Size newsize = new size (150, 250);
}
Image.ResizeImage (@"C:\\1.bmp", new size(150,250));
0 Kudos
Highlighted
Visitor arronlee
Visitor
1,202 Views
Registered: ‎07-16-2013

Re: On MFS image's size

Hi, Felding.

Thanks for your nice sharing. But I wonder how can I use these codes. Do I need another image resizer to help change the size of images? I am almost a green hand here. Any suggestion will be appreciated. Thanks in advance.   

 

 

 

Best regards,

Arron

0 Kudos