Lighteight in memory image manipulation / drawing (Pure Fantom) With access to the in memory buffer and saving/loading functionalities
tuen on / off antialiasing
A piece of oval ?
Returns the unique colors used in this image CPU intensive as we scan the whole image to count colors If we hit max then we stop and return
DrawingEnv env := DrawingEnv.<ctor>()
Change the current fill color to be used when filling items
Draw a filled rectangle using the fill color (no stroke used).
Draw a line with the current stroke
new make(Size size)
Creates an empty image See load() method to create from a file
Draw an oval with the current pen and brush. The oval is fit within the rectangle specified by x, y, w, h.
Draw a pixel at x,y If color contains some alpha, blend it with the existing pixel color
Color pixels := Color[,]
Draw a polygon ... link all the points together.
Draw a rectangle with the current stroke.
Save to a file
Change the current stroke color and thickness) Zero thickness means no stroke
Draw a the text string with the current brush and font. The x, y coordinate specifies the top left corner of the rectangular area where the text is to be drawn.