ImageManager

An image manager.

Constructors

this
this(string baseImagePath, string outputPath)

Creates a new image manager.

Members

Functions

drawImage
bool drawImage(string imagePath, ptrdiff_t x, ptrdiff_t y, ptrdiff_t width, ptrdiff_t height)

Draws an image.

drawImage
bool drawImage(string imagePath, ptrdiff_t x, ptrdiff_t y)

Draws an image.

drawImageStretchedHorizontal
bool drawImageStretchedHorizontal(string imagePath, ptrdiff_t x, ptrdiff_t y, ptrdiff_t width)

Draws an image with a custom width.

drawImageStretchedVertical
bool drawImageStretchedVertical(string imagePath, ptrdiff_t x, ptrdiff_t y, ptrdiff_t height)

Draws an image with a custom height.

drawLine
bool drawLine(ptrdiff_t startX, ptrdiff_t startY, ptrdiff_t endX, ptrdiff_t endY, Color color)

Draws a line.

drawRectangle
bool drawRectangle(ptrdiff_t x, ptrdiff_t y, ptrdiff_t width, ptrdiff_t height, Color color, bool fill)

Draws a rectangle.

drawText
bool drawText(string text, TextOptions options)

Draws text on the image.

finalize
void finalize()

Finalizes the image. (Removes the last temp image and creates the final output image file.)

flipHorizontal
bool flipHorizontal()

Flips the image horizontal.

flipVertical
bool flipVertical()

Flips the image vertically.

inverseColors
bool inverseColors()

Inverses the colors.

merge
bool merge(string imagePath)

Merges another image on-top.

rotate180
bool rotate180()

Rotate the image 180 degrees.

rotate90
bool rotate90()

Rotates the image 90 degrees.

turnBlackAndWhite
bool turnBlackAndWhite()

Turns the image black and white.

Meta