public class Letter extends CharacterImage
The scaled image is always calculated from the original, retaining quality across any number of resize operations
image, value| Constructor and Description |
|---|
Letter(java.awt.image.BufferedImage p_image)
Creates a new Letter from a given image, assuming scaled is identical.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Returns the current height of the letter.
|
int |
getWidth()
Returns the current width of this letter.
|
int |
getX()
Returns the current x-coordinate of the letter as placed on the document from which it was sliced.
|
int |
getY()
Returns the current Y coordinate of this letter as it was once placed in the source document.
|
void |
setX(int p_x)
Sets the X co-ordinate of the letter on the page.
|
void |
setY(int p_y)
Sets the Y coordinate of the letter as placed in the source document.
|
getImage, getValue, setImage, setValuepublic Letter(java.awt.image.BufferedImage p_image)
p_image - The image slice to aply as a letter.public int getWidth()
public int getHeight()
public void setX(int p_x)
p_x - The X-coordinate, ignored if < 0public int getX()
public void setY(int p_y)
p_y - The new Y coordinate, ignored is under 0public int getY()