|
Tekvel Magic
|
Public Member Functions | |
| def | __init__ (self, data=None) |
| def | read_from_file (self, str filePath) |
| Read Bitmap from file. More... | |
| def | read_from_bytes (self, bytes bindata) |
| Read Bitmap from bytes. More... | |
| def | to_file (self, str filePath) |
| Save Bitmap to file. More... | |
| str | get_data (self) |
| Get binary representation of Bitmap data. More... | |
Bitmap graphics.
This class provides a convenient interface for bitmap manipulations. It is used as interface by plotter functions as well as for image display dialogs, etc.
| def __init__ | ( | self, | |
data = None |
|||
| ) |
| str get_data | ( | self | ) |
Get binary representation of Bitmap data.
Returns Base64-encoeded binary representation of an image as string.
| def read_from_bytes | ( | self, | |
| bytes | bindata | ||
| ) |
Read Bitmap from bytes.
| bindata | bytes-type binary representation of an image. |
| def read_from_file | ( | self, | |
| str | filePath | ||
| ) |
Read Bitmap from file.
| filePath | a path to *.png or *.bmp file. |
Reads data from bitmap file from provided path and stores in in the instance of the Bitmap.