| Modifier and Type | Class and Description |
|---|---|
class |
TextureSurface
|
| Modifier and Type | Method and Description |
|---|---|
Surface |
Surface.begin()
Starts a series of drawing commands to this surface.
|
Surface |
Surface.clear()
Clears the entire surface to transparent blackness.
|
Surface |
Surface.clear(float red,
float green,
float blue,
float alpha)
Clears the entire surface to the specified color.
|
Surface |
Surface.concatenate(AffineTransform xf,
float originX,
float originY)
Concatenates
xf onto this surface's transform, accounting for the origin. |
Surface |
Surface.draw(Tile tile,
float x,
float y)
Draws a tile at the specified location:
x, y. |
Surface |
Surface.draw(Tile tile,
float x,
float y,
float w,
float h)
Draws a tile at the specified location
(x, y) and size (w x h). |
Surface |
Surface.draw(Tile tile,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh)
Draws a scaled subset of an image (defined by
(sx, sy) and (w x h)) at the
specified location (dx, dy) and size (dw x dh). |
Surface |
Surface.draw(Tile tile,
int tint,
float x,
float y,
float w,
float h)
Draws a tile at the specified location
(x, y) and size (w x h), with tint
tint. |
Surface |
Surface.draw(Tile tile,
int tint,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh)
Draws a scaled subset of an image (defined by
(sx, sy) and (w x h)) at the
specified location (dx, dy) and size (dw x dh), with tint tint. |
Surface |
Surface.drawCentered(Tile tile,
float x,
float y)
Draws a texture tile, centered at the specified location.
|
Surface |
Surface.drawLine(float x0,
float y0,
float x1,
float y1,
float width)
Fills a line between the specified coordinates, of the specified display unit width.
|
Surface |
Surface.drawLine(XY a,
XY b,
float width)
Fills a line between the specified coordinates, of the specified display unit width.
|
Surface |
Surface.end()
Completes a series of drawing commands to this surface.
|
Surface |
Surface.fillRect(float x,
float y,
float width,
float height)
Fills the specified rectangle.
|
Surface |
Surface.preConcatenate(AffineTransform xf)
Pre-concatenates
xf onto this surface's transform. |
Surface |
Surface.restoreTx()
Restores the transform previously stored by
saveTx(). |
Surface |
Surface.rotate(float angle)
Rotates the current transformation matrix by the specified angle in radians.
|
Surface |
Surface.saveTx()
Saves the current transform.
|
Surface |
Surface.scale(float sx,
float sy)
Scales the current transformation matrix by the specified amount on each axis.
|
Surface |
Surface.setAlpha(float alpha)
Set the alpha component of this surface's current tint.
|
Surface |
Surface.setFillColor(int color)
Sets the color to be used for fill operations.
|
Surface |
Surface.setFillPattern(Texture texture)
Sets the texture to be used for fill operations.
|
Surface |
Surface.setTint(int tint)
Sets the tint to be applied to draw operations, as
ARGB. |
Surface |
Surface.transform(float m00,
float m01,
float m10,
float m11,
float tx,
float ty)
Multiplies the current transformation matrix by the given matrix.
|
Surface |
Surface.translate(float x,
float y)
Translates the current transformation matrix by the given amount.
|
Copyright © 2018. All Rights Reserved.