|
-
June 1st, 1999, 02:44 PM
#1
Flip 8 + 24 bit BMP in Memory
I have 8 bit pixel data in memory that I need to flip both Horiz. and Vert. How do I do it? I want to take the raw pixel data, flip it, then attach the needed BITMAPINFOHEADER, BITMAPFILEHEADER and RGBQUAD table to create the bitmap.
I wish I was as smart as I am confused...argh!
-
June 2nd, 1999, 03:49 PM
#2
Re: Flip 8 + 24 bit BMP in Memory
I suggest using the StretchBlt function after selecting the data onto a memory DC (use CreateCompatibleDC for the memory device context)
Not all devices support the StretchBlt function, use the GetDeviceCaps function to check.
With regard to the other part the Bitmap Functions
should be okay ... I am stumbling in this area too.
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
|