gd.ImagePNG
generated from ../src/mod_gd/png.cppA PNG image.
Constants
Constructor
ImagePNG
ImagePNG(Filename)
| Name | Type | Default | Description |
|---|---|---|---|
| Filename | String | The name of a PNG file |
ImagePNG(Buffer)
| Name | Type | Default | Description |
|---|---|---|---|
| Buffer | wxMemoryBuffer | A buffer containing PNG bytes |
ImagePNG(Image)
| Name | Type | Default | Description |
|---|---|---|---|
| Image | Image | An image |
Creates a new ImagePNG object.
When the filename is relative the path will be resolved
to the path of the active script.
Methods
write
write(Filename,
Level = -1) : Boolean
| Name | Type | Default | Description |
|---|---|---|---|
| Filename | String | ||
| Level | Integer | -1 |
Writes the image to a file. Returns false when the file can't
be opened. A compression level of 0 means "no compression." A compression
level of 1 means "compressed, but as quickly as possible." A compression
level of 9 means "compressed as much as possible to produce the smallest
possible file." A compression level of -1 will use the default compression
level at the time zlib was compiled on your system.
When the filename is relative the path will be resolved
to the path of the active script.
writeToBuffer
writeToBuffer() : wxMemoryBuffer
Writes the image to a buffer.
© 2002 - 2007 Franky Braem.