![]() |
|
finding out bitmap pixel info |
qwertq
Member #7,632
August 2006
|
I need to make a program that can tell me what color a specific pixel (with a specific coordinate) from a BMP has. Even smth as simple as this: Pixel(0,0): Color Green; Pixel(1,0): Color Blue... till the end of file. |
SonShadowCat
Member #1,548
September 2001
![]() |
Go look at the manual and find the getpixel functions. |
Maikol
Member #4,997
September 2004
![]() |
El sabio no dice todo lo que piensa, pero siempre piensa todo lo que dice |
miran
Member #2,407
June 2002
|
Maikol: 1. Your code does the same thing as blit() and 2. Your code doesn't even compile. qwertq: If you really need to find the names of the colours in the bitmap, do the following for each pixel: 1. Read colour with getpixel(). If you don't actually need to put names to the colours, but just want to read integer values for pixels, then follow SonShadowCat's advice to RTFM. -- |
|