Panda3D
|
Public Member Functions | |
def | __init__ (self) |
def | addImage (self, image) |
def | generateMissingImages (self) |
def | makeICNS (self, fn) |
def | makeICO (self, fn) |
Public Attributes | |
images | |
Static Public Attributes | |
notify = directNotify.newCategory("Icon") | |
This class is used to create an icon for various platforms.
def __init__ | ( | self | ) |
def 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.
def generateMissingImages | ( | self | ) |
Generates image sizes that should be present but aren't by scaling from the next higher size.
def makeICNS | ( | self, | |
fn | |||
) |
Writes the images to an Apple ICNS file. Returns True on success.
def makeICO | ( | self, | |
fn | |||
) |
Writes the images to a Windows ICO file. Returns True on success.
images |
|
static |