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 = 0xff)

Paints a horizontal gradient on the picture.

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

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.

fileName
string fileName [@property getter]

Gets the file name.

fileName
string fileName [@property setter]

Sets the file name.

imageBuffer
ubyte[] imageBuffer [@property getter]

Gets the image buffer.

imageBuffer
ubyte[] imageBuffer [@property setter]

Sets the image buffer.

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