Package-level declarations
Types
Functions
Helper function that calls fitRectangle and returns a Matrix44 instead of a Pair<Rectangle, Rectangle>
. The returned matrix can be used to draw scaled Shape
or ShapeContour
objects.
Transforms src and dest into a Pair in which one of the two rectangles is modified to conform with the fitMethod. It uses horizontalPosition and verticalPosition to control positioning / cropping.
Draws img into the bounding box defined by bounds using the specified fitMethod and aligned or cropped using horizontalPosition and verticalPosition.
Draws img into the bounding box defined by x, y, width and height using the specified fitMethod and aligned or cropped using horizontalPosition and verticalPosition.
Draws a subsection of the given image into a target rectangle within the current Drawer
bounds, using the specified fit method and alignment.