Hello All,
I have some raw image data in a byte array, i want to know how can i convert this into .bmp/.jpg/.gif image file.. I am using VC++.It's urgent please can anybody help me...
Thanks in advance,
Poornima.
Printable View
Hello All,
I have some raw image data in a byte array, i want to know how can i convert this into .bmp/.jpg/.gif image file.. I am using VC++.It's urgent please can anybody help me...
Thanks in advance,
Poornima.
Image Class of GDI+ can help you on that one ;).
Cheers
Hello Srelu,
Thanks for your help...but one problem i have is my image is showing as a very tiny image..the problem comes where you are settinfg up the pixels array..in sample code. What could be the problem?
Thanks & Regards,
Poornima.
i would guess the problem is this (in CRawDoc::Serialize):Quote:
Originally Posted by cheery_poori
otherwise, if you want to display an image at a larger size than its native size use StretchBlt() instead of BitBlt()Code:// Hardcoded startup parameters (may be changed for other size raw files).
int iWidth = 256; // for lena.raw - you can change for different value
int iHeight = 256; // for lena.raw - you can change for different value