Board index » delphi » color of point

color of point


2006-11-29 09:21:02 PM
delphi158
How can I get the color of a point(x,y) on form1.Image1.Canvas
 
 

Re:color of point

YZ writes:
Quote
How can I get the color of a point(x,y) on form1.Image1.Canvas
I think just Form1.Image1.Canvas.Pixels[x, y] is a TColor (can't
remember for sure)
--Martin
 

Re:color of point

YZ writes:
Quote
How can I get the color of a point(x,y) on form1.Image1.Canvas
If only one point, look at Canvas.Pixels. If lots of points, look at
TBitmap.ScanLine, which has much higher performance but is slightly
less convenient to use.
--
Craig Stuntz [TeamB] ?Vertex Systems Corp. ?Columbus, OH
Delphi/InterBase Weblog : blogs.teamb.com/craigstuntz
Want to help make Delphi and InterBase better? Use QC!
qc.borland.com -- Vote for important issues