Skip to main content
Known Participant
April 21, 2006
Answered

Bitmap reading

  • April 21, 2006
  • 2 replies
  • 244 views
Is it possible in Flash 8 to get the value of a pixel of a jpeg in coordinates x,y ?

Thanks!
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer blemmo
Yep, it's possible. Create a BitmapData object from the jpg, and use the getPixel(x,y) method to retrieve the color at x,y.

cheers,
blemmo

2 replies

mr_eddyAuthor
Known Participant
April 24, 2006
Thanks
blemmoCorrect answer
Inspiring
April 21, 2006
Yep, it's possible. Create a BitmapData object from the jpg, and use the getPixel(x,y) method to retrieve the color at x,y.

cheers,
blemmo