Picture

A picture for image manipulation.

Constructors

this
this(string imageFile)

Creates a new picture.

this
this(Size size, Paint fillPaint)

Creates a new picture.

this
this(ubyte[] imageBuffer)

Creates a new picture.

this
this(Picture copyImage)

Creates a new picture, copied from another.

Members

Functions

clearGraphics
void clearGraphics()

Clears the graphics.

draw
void draw(Point position, Size size, Paint paint)

Draws paint onto the picture.

finalize
void finalize()

Finalizes the picture and its graphics.

gradientHorizontal
void gradientHorizontal(Point position, Size size, Paint from, Paint to, ubyte a)

Paints a horizontal gradient on the picture.

gradientVertical
void gradientVertical(Point position, Size size, Paint from, Paint to, ubyte a)

Paints a vertical gradient on the picture.

resize
void resize(Size newSize)

Resizes the picture.

Properties

backgroundSprite
TextureSprite backgroundSprite [@property getter]

Gets the background sprite of the picture.

drawingSprite
TextureSprite drawingSprite [@property getter]

Gets the drawing sprite of the picture.

position
Point position [@property setter]

Sets the position of the picture's sprite.

size
Size size [@property getter]

Gets the size of the picture.

Meta