classgraphics302::Image302
sys::Obj graphics302::Image302
Lighteight in memory image manipulation / drawing (Pure Fantom) With access to the in memory buffer and saving/loading functionalities
- aa
 tuen on / off antialiasing
- arc
 This arc()A piece of oval ?
- colors
 Color[] colors(Int? max := null)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
- env
 DrawingEnv env := DrawingEnv.<ctor>()- fill
 Change the current fill color to be used when filling items
- filledRect
 Draw a filled rectangle using the fill color (no stroke used).
- getPixel
 - line
 Draw a line with the current stroke
- load
 static Image302 load(File f, ImageFormat format)- make
 new make(Size size)Creates an empty image See load() method to create from a file
- oval
 This oval(Rect r, Bool filled := false)Draw an oval with the current pen and brush. The oval is fit within the rectangle specified by x, y, w, h.
- pix
 This pix(Point p, Color color)Draw a pixel at x,y If color contains some alpha, blend it with the existing pixel color
- pixels
 Color[] pixels := Color[,]- poly
 Draw a polygon ... link all the points together.
- rect
 Draw a rectangle with the current stroke.
- save
 Void save(File f, ImageFormat format, Str:Str options := ([Str:Str])[:])Save to a file
- size
 Size size- stroke
 This stroke(Color color, Int thickness)Change the current stroke color and thickness) Zero thickness means no stroke
- text
 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.