|
-
December 3rd, 2007, 05:40 AM
#1
Creating .bmp/.jpg/.gif image from raw image data
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.
-
December 3rd, 2007, 06:00 AM
#2
Re: Creating .bmp/.jpg/.gif image from raw image data
-
December 3rd, 2007, 04:32 PM
#3
Re: Creating .bmp/.jpg/.gif image from raw image data
Image Class of GDI+ can help you on that one .
Cheers
-
December 4th, 2007, 04:43 AM
#4
Re: Creating .bmp/.jpg/.gif image from raw image data
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.
-
December 4th, 2007, 05:59 AM
#5
Re: Creating .bmp/.jpg/.gif image from raw image data
 Originally Posted by cheery_poori
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):
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
otherwise, if you want to display an image at a larger size than its native size use StretchBlt() instead of BitBlt()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|