java.lang.Object
juuxel.libninepatch.AwtTextureRenderer
- All Implemented Interfaces:
ContextualTextureRenderer<BufferedImage,Void>,TextureRenderer<BufferedImage>
Renders a
BufferedImage using AWT's Graphics.-
Field Summary
Fields inherited from interface juuxel.libninepatch.TextureRenderer
STDOUT_DEBUG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(BufferedImage texture, int x, int y, int width, int height, float u1, float v1, float u2, float v2)Draws rectangular region of a texture.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface juuxel.libninepatch.ContextualTextureRenderer
draw, drawTiled, drawTiledMethods inherited from interface juuxel.libninepatch.TextureRenderer
draw, draw
-
Constructor Details
-
Method Details
-
draw
public void draw(BufferedImage texture, int x, int y, int width, int height, float u1, float v1, float u2, float v2)Description copied from interface:TextureRendererDraws rectangular region of a texture.- Specified by:
drawin interfaceTextureRenderer<BufferedImage>- Parameters:
texture- the texturex- the leftmost X coordinate of the target drawing regiony- the topmost Y coordinate of the target drawing regionwidth- the width of the target regionheight- the height of the target regionu1- the left edge of the input region as a fraction from 0 to 1v1- the top edge of the input region as a fraction from 0 to 1u2- the right edge of the input region as a fraction from 0 to 1v2- the bottom edge of the input region as a fraction from 0 to 1
-