Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get color of a pixel on a canvas

Status
Not open for further replies.

tkordick

Programmer
Dec 1, 2001
10
0
0
US
I have a graphics2d object that I am drawing various shapes in. After it is rendered onto a canvas, I need to iterate through all the x and y coordinates of the canvas and get the color of the pixel at that x,y coordinate. How do I do this? I can't find a getRGB(x,y) that works on a canvas.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top