Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TexturePaint Object

 
Christopher Acosta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic