back to gd 

gd.ImageJPEG

generated from ../src/mod_gd/jpeg.cpp

A JPEG image.

Constants

Constructor

ImageJPEG

ImageJPEG(Filename)
 
Name Type Default Description
Filename String The name of a JPEG file
ImageJPEG(Buffer)
 
Name Type Default Description
Buffer wxMemoryBuffer A buffer containing JPEG bytes
ImageJPEG(Image)
 
Name Type Default Description
Image Image An image

Creates a new ImageJPEG object.
When the filename is relative the path will be resolved to the path of the active script.

Methods

write

write(Filename, 
      Quality = 100) : Boolean
 
Name Type Default Description
Filename String
Quality Integer 100

Writes the image to a file. Returns false when the file can't be opened. When the filename is relative the path will be resolved to the path of the active script.

writeToBuffer

writeToBuffer(Quality = 100) : wxMemoryBuffer
 
Name Type Default Description
Quality Integer 100

Writes the image to a buffer.



SourceForge.net Logo Support This Project

Table of Contents

Constructor

ImageJPEG

Methods

write
writeToBuffer


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