File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TexturePaint Object