org.minueto.image
Class MinuetoRectangle
java.lang.Object
org.minueto.image.MinuetoImage
org.minueto.image.MinuetoRectangle
- All Implemented Interfaces:
- java.lang.Cloneable, MinuetoDrawingSurface
public class MinuetoRectangle
- extends MinuetoImage
The MinuetoRectangle class allows you to build the image of a rectangle or a square.
Since MinuetoRectangle extends MinuetoImage, all the important image
manipulation fonctionnality (such as draw, drop, scale, etc) are available.
- Since:
- Minueto 0.4
- See Also:
MinuetoImage
|
Constructor Summary |
MinuetoRectangle(int sizeX,
int sizeY,
MinuetoColor color,
boolean fill)
Creates a MinuetoRectangle image of a rectangle (or a square) of the specified
color and size. |
| Methods inherited from class org.minueto.image.MinuetoImage |
clear, clear, clone, crop, draw, drawCircle, drawLine, drawPolygon, drawRectangle, flip, getHeight, getPixel, getWidth, mask, rotate, save, scale, setPixel |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinuetoRectangle
public MinuetoRectangle(int sizeX,
int sizeY,
MinuetoColor color,
boolean fill)
- Creates a
MinuetoRectangle image of a rectangle (or a square) of the specified
color and size.
- Parameters:
sizeX - int denoting the width of the rectangle.sizeY - int denoting the height of the rectangle.color - MinuetoColor denoting the color of the rectangle.fill - boolean denothing if the rectangle should be full (true) or
transparent.
- Throws:
MinuetoZeroNegativeException - if the supplied rectangle size is invalid.