01-04-2011 12:56 PM
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:
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?
03-27-2013 12:32 AM
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));
08-05-2015 08:06 PM
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.