SRL Archive - Delphi/FPC Help and Tutorials

Im Deperate(im Dutch)


ShowerThoughts

2008-03-14 19:05:40

hey, i really don't know it anymore i searched and searched!
for 1 hour

can some tell me how to color pic(like in scar) a color in delphi?


Hermpie

1337.

2008-03-21 11:18:16

Hey dude,

You might want to try reading up on the GetPixel function, it's something like this:

GetPixel(HDC, x, y);

HDC specifies which device attatched to the computer you want to 'pixel-search' for, in this case you'll want it to be the monitor, so it'll be something like this:


theHDC := GetDC( 0 );
GetPixel(theHDC, x, y);


…and the x and y are pretty self explanitory.

Any questions, google :)

ShowerThoughts

2008-03-21 11:24:31

k thanks