| Image | An Image consists of: an image type, a filename, and SIMG header info. |
| Image.render_to_simg | Creates a SIMG file. |
| Image.size | Return the full size of this image (as an SIMG) |
| Image.verify | Returns true if the image is valid, false otherwise. |
An Image consists of: an image type, a filename, and SIMG header info.
>>> from cxmanage_api.image import Image
>>> img = Image(filename='spi_highbank.bin', image_type='PACAKGE')
| Parameters: |
|
|---|---|
| Raises: |
|
Creates a SIMG file.
>>> img.render_to_simg(priority=1, daddr=0)
>>> 'spi_highbank.bin'
| Parameters: |
|
|---|---|
| Returns: | The file name of the image. |
| Return type: | string |
| Raises InvalidImageError: | |
If the SIMG image is not valid. |
|