CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2001
    Posts
    20

    work with 8bit bitmaps

    Hi, i've got such a problem - can anybody explain (or probably give some example) how to work with 8bit pictures. I need to get some pixel and then to paint it in some point. The problem is that the pixel is 8bit, and graphic functions (like setpixel) need COLORREF (RGB???). I don't know how to convert 1 byte to RGB. May be i need to work with pallete, but i don't know how to do it.
    Or is there some other way??? Anyway somebody please help me!!!
    Thanks.


  2. #2
    Join Date
    Oct 2000
    Location
    London, England
    Posts
    4,773

    Re: work with 8bit bitmaps

    It's probably a 256 colour palette.

    There must be a table somewhere of up to 256 RGB colours.



  3. #3
    Join Date
    Oct 2000
    Posts
    127

    Re: work with 8bit bitmaps

    Where do you take a pixel? Is it from a BMP file?


    It is nice to be important, but more important to be nice.
    It is nice to be important, but more important to be nice.

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