|
Panda3D
|
Public Member Functions | |
| __init__ (self) | |
| addImage (self, image) | |
| generateMissingImages (self) | |
| makeICNS (self, fn) | |
| makeICO (self, fn) | |
Public Attributes | |
| dict | images = {} |
Static Public Attributes | |
| notify = directNotify.newCategory("Icon") | |
Protected Member Functions | |
| _write_bitmap (self, fp, image, size, bpp) | |
This class is used to create an icon for various platforms.
| __init__ | ( | self | ) |
|
protected |
Writes the bitmap header and data of an .ico file.
| addImage | ( | self, | |
| image ) |
Adds an image to the icon. Returns False on failure, True on success. Only one image per size can be loaded, and the image size must be square.
| generateMissingImages | ( | self | ) |
Generates image sizes that should be present but aren't by scaling from the next higher size.
| makeICNS | ( | self, | |
| fn ) |
Writes the images to an Apple ICNS file. Returns True on success.
| makeICO | ( | self, | |
| fn ) |
Writes the images to a Windows ICO file. Returns True on success.
| dict images = {} |
|
static |