This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
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