This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes TexturePaint Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "TexturePaint Object" Watch "TexturePaint Object" New topic
Author

TexturePaint Object

Christopher Acosta
Greenhorn

Joined: Apr 21, 2000
Posts: 4
Using the Texture Paint constructor which takes three arguments: a BufferedImage object, a Rectangle object, and an interpolation mode. It's the third argument I can't seem to get working when using : TexturePaint.NEAREST_NEIGHBOR I get an error message 'no variable NEAREST_NEIGHBOR defined in class java.awt.TexturePaint.'
Yes I have imported all the packages!
My constructor: TexturePaint tp = new TexturePaint( bImg,
new Rectangle(0, 0, imgWidth,
imgHeight),TexturePaint.NEAREST_NEIGHBOR);
Thanks for the help!

[This message has been edited by Christopher Acosta (edited June 28, 2000).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: TexturePaint Object
 
Similar Threads
BufferedImage ?
What is "this" keyword?
compile error
Using TexturePaint causes printing problem
BufferedImage ( hello, anyone home??? )