CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    New Jersey, USA
    Posts
    369

    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!

  2. #2
    Join Date
    May 1999
    Posts
    13

    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
  •  





Click Here to Expand Forum to Full Width

Featured