back to gd 

gd.ImagePNG

generated from ../src/mod_gd/png.cpp

A 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.



SourceForge.net Logo Support This Project

Table of Contents

Constructor

ImagePNG

Methods

write
writeToBuffer


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.