none
Can a bitmap have a number higher than 225 RRS feed

  • Question

  • Can a bitmap have a number higher than 225 ?

    I know bitmaps are made up of colors.

    can a color be high than 225?

    because I need it to be 0-1024.


    Monday, June 17, 2019 7:56 PM

All replies

  • The .NET Bitmap class doesn't allow for values between 0 and 1023 (not 1024).

    For values between 0 and 1023 you would need 10 bit components. The bitmap formats supported by the .NET Bitmap class supports 5 bit components, 8 bit components or 16 bit components.


    This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.

    Monday, June 17, 2019 8:36 PM
  • Hi Btb4198,

    I'm wondering why you need 1024 color (10-bit color = R:1024 x G:1024 x B:1024 = 1,073,741,824 color)? 

    It is said that human eyes can recognize about 10 million color.  8-bit color means 16,777,216 color and it is over 10 million.
    And furthermore, we can see a picture via a monitor screen or a sheet of paper printed by a printer.  Monitor and paper cannot express 10-bit color, even if an image file consists of 10-bit color.
    Regards,

    Ashidacchi -- https://ssl01.rocketnet.jp/hokusosha.com/default.html

    Monday, June 17, 2019 10:36 PM
  • He has a camera that produces 10-bit grayscale.  The human eye can distinguish 1,024 shades of gray.  Even if you can't display them all, there are certainly tools that can analyze 10-bit grayscale imges.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    Tuesday, June 18, 2019 6:39 AM
  • Hi Btb4198,
    Which are you talking about, grayscale or color? 
    Regards,

    Ashidacchi -- https://ssl01.rocketnet.jp/hokusosha.com/default.html

    Tuesday, June 18, 2019 8:43 AM
  • From his original post, he is talking about greyscale.

    This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.

    Tuesday, June 18, 2019 1:17 PM