Board index » delphi » <<<canvas.pixels(green):=???

<<<canvas.pixels(green):=???

Is canvas.pixels able to return only the value of the red (green,blue)?

something like    integer:=canvas.pixels[].green;

and otherwise    canvas.pixels[].green:=integer;

Please mail me your advise, thanks
patrick

 

Re:<<<canvas.pixels(green):=???


Canvas.Pixels[x,y] returns or sets the color of a pixel at point x,y on
the canvas

so
Canvas.Pixels[1,2] := clGreen; // will set a pixel to green.
col := Canvas.Pixels[1,2]; // will return color at [1,2]

Kind Regards
Claire, c...@HallworthHome.demon.co.uk

Other Threads