Results 1 to 2 of 2

Thread: hDC Bitmaps Colorformats Bits per pixel

  1. #1

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    hDC Bitmaps Colorformats Bits per pixel

    The header lists alot.

    Well I am curious as what bit a hDC is in.
    An hDc gathered by using LoadImage(); then getting a DC from CreateDC and Selecting the HBITMAP from LoadImage into the DC you created.

    Is it a unchanged representation of the bitmap?
    Does it change how many colors are per pixel?
    Can it read in 24-bit 16-bit 8-bit black and white?

    Next,
    Can you create black-and-white bmps? which contain very low color values.
    Like 20-30...with shades between black and white of gray.
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349
    Correct me if I'm wrong since I'm no C++ guru or anything like that (yet), but even after using LoadImage() and all of that, wouldn't the number of bit's of your loaded bitmap be the same as the number of bit's the bitmap file was?

    And you can create black and white bitmaps using 256 color bitmaps and providing a greyscale pallete.

    There's also 16 color and monochrome, but I would never worry about those. 256 color is more flexible.

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