Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BufferedImage / getRGB - problem

 
Mindaugas Brazenas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What I want to do is to draw to BufferedImage via Graphics2D, and then copy all image by pixel. What I need is an ability to get pixel's color and it seems to work, but at least not in the way I suppose... There is the piece of code:



I draw something, but what I got is black! ( "0 / 0 / 0" )

What I am doing wrong here?

Mindaugas
[ July 04, 2007: Message edited by: Mindaugas Brazenas ]
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Mindaugas Brazenas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!

It is working !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic