Why the RGB value I get from Getpixel() is different from the value from the bit 
Author Message
 Why the RGB value I get from Getpixel() is different from the value from the bit

Why the RGB value I get from Getpixel() is different from
the value from the bits of the bitmap. I compare the rgb
value of the pixel gotton from Getpixel() and the
corresponding rgb value of the same pixle stored in the
bitmap.they are some diifference ,
why


Sun, 03 Oct 2004 21:22:15 GMT  
 Why the RGB value I get from Getpixel() is different from the value from the bit
Here I can tell some of my experiences.
1) It could be dependent on your display settings.
2) When in de{*filter*} mode, it could not return color in
actual client coordinate, since the image does not show.
3) Maybe relating to the bitmap structure, which I could
not elaborate.
Quote:
>-----Original Message-----
>Why the RGB value I get from Getpixel() is different from
>the value from the bits of the bitmap. I compare the rgb
>value of the pixel gotton from Getpixel() and the
>corresponding rgb value of the same pixle stored in the
>bitmap.they are some diifference ,
>why

>.



Sun, 03 Oct 2004 22:10:39 GMT  
 Why the RGB value I get from Getpixel() is different from the value from the bit
Also, if there is a mapping mode involved, the "pixel" of the bitmap may not correspond to
any pixel of the screen. I've never investigated the impact of color-correction systems,
either. And are you sure you have the same pixel? I'd try some calibrated tests with, for
example, large bands of color of known size (e.g., 10 pixels wide) and try to see if there
is an off-by-something error in the coordinates as well. Otherwise the analysis below is
pretty much what I would have offered.
                                joe

Quote:

>Here I can tell some of my experiences.
>1) It could be dependent on your display settings.
>2) When in de{*filter*} mode, it could not return color in
>actual client coordinate, since the image does not show.
>3) Maybe relating to the bitmap structure, which I could
>not elaborate.

>>-----Original Message-----
>>Why the RGB value I get from Getpixel() is different from
>>the value from the bits of the bitmap. I compare the rgb
>>value of the pixel gotton from Getpixel() and the
>>corresponding rgb value of the same pixle stored in the
>>bitmap.they are some diifference ,
>>why

>>.

Joseph M. Newcomer [MVP]

Web: http://www.*-*-*.com/ ~newcomer
MVP Tips: http://www.*-*-*.com/ ~newcomer/mvp_tips.htm


Mon, 04 Oct 2004 23:46:57 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Why different values for HUGE_VAL ?

2. different instances of OCX sharing variables values, Why?

3. Value, value, who's got the value?

4. localtime function returns different values for different winnt operating systems

5. Different value when converting into different type

6. GetCommTimeouts is returns different values on different ports

7. masking 1,2,4,8,16 bit values from 32 bit int

8. ouput 9 bit values as 8 bit - lzw gif implementation

9. Splitting RGB hex values

10. Raster Operations on Palette Indexes in stead of RGB Values

11. Get Nth bit value from a 32-bit number

12. rgb value

 

 
Powered by phpBB® Forum Software