FL.objects.Image.Image
- class FL.objects.Image.Image(width_or_image: int | Image | None = None, height: int | None = None)
Bases:
object- __init__(width_or_image: int | Image | None = None, height: int | None = None) None
Image - class to represent image
- Image()
generic constructor, creates an Image with zero coordinates
- Image(Image)
copy constructor
- Image(int width, int height)
creates an Image of given size
Methods
Clear()Clears the image
Create(width, height)Creates a blank image of given size.
GetPixel(p)HLine(x0, x1, y, color)ImageBlt(dest, source_rect, dest_point)Invert()SetPixel(p)Trace(glyph)Traces the image with the current option and adds it to the glyph
__init__([width_or_image, height])Image - class to represent image
fake_deserialize(data)fake_serialize()Attributes
Access the image buffer
The empty status of the image
Dimensions of the image
The size of the image buffer
There is a possibility to trace the image with the Trace command
Dimensions of the image
- Trace(glyph: Glyph) None
Traces the image with the current option and adds it to the glyph
- Parameters:
glyph (Glyph) – The glyph to which the traced outline will be added
- property height: int
Dimensions of the image
- Returns:
The height of the image in pixels
- Return type: