export_png module
- class ooodev.draw.filter.export_png.ExportPng(pixel_width, pixel_height, logical_width=-1, logical_height=-1, compression=6, translucent=False, interlaced=False)[source]
- Parameters:
pixel_width (int) –
pixel_height (int) –
logical_width (int) –
logical_height (int) –
compression (int) –
translucent (bool) –
interlaced (bool) –
- __init__(pixel_width, pixel_height, logical_width=-1, logical_height=-1, compression=6, translucent=False, interlaced=False)[source]
Constructor
- Parameters:
pixel_width (int) – Pixel Width.
pixel_height (int) – Pixel Height.
logical_width (int, optional) – Logical Width - Usually that same as
pixel_width
. Defaults to Pixel Width.logical_height (int, optional) – Logical Height - Usually that same as
pixel_height
. Defaults to Pixel Height.compression (int, optional) – Compression value from 1 to 9. Higher compression, smaller file size. Default is
6
.translucent (bool) – Translucent. Defaults to
False
.interlaced (bool) – Interlaced. Defaults to
False
.
- static from_dict(dict)[source]
- Return type:
- Parameters:
dict (ExportPngT) –
- class ooodev.draw.filter.export_png.ExportPngT(*args, **kwargs)[source]
Draw Image Export Data for Png.
pixel_width: Pixel Width.
pixel_height: Pixel Height.
logical_width: Logical Width - Usually that same as
pixel_width
.logical_height: Logical Height - Usually that same as
pixel_height
.compression: Compression value from 1 to 9. Higher compression, smaller file size. Default is 6.
translucent: Translucent.
interlaced: Interlaced.
- compression: int
- interlaced: bool
- logical_height: int
- logical_width: int
- pixel_height: int
- pixel_width: int
- translucent: bool