wxPdfDocument
0.9.7
|
Class representing image objects. (For internal use only) More...
#include <pdfimage.h>
Public Member Functions | |
wxPdfImage (wxPdfDocument *document, int index, const wxString &name, const wxString &type) | |
Constructor. More... | |
wxPdfImage (wxPdfDocument *document, int index, const wxString &name, const wxImage &image, bool jpegFormat=false) | |
Constructor. More... | |
wxPdfImage (wxPdfDocument *document, int index, const wxString &name, wxInputStream &stream, const wxString &mimeType) | |
Constructor. More... | |
virtual | ~wxPdfImage () |
Destructor. More... | |
void | SetIndex (int index) |
Set image index. More... | |
int | GetIndex () |
Get image index. More... | |
void | SetObjIndex (int n) |
Set object index. More... | |
int | GetObjIndex () |
Get object index. More... | |
void | SetMaskImage (int maskImage) |
Set mask flag. More... | |
int | GetMaskImage () |
Check mask flag. More... | |
void | SetType (const wxString &type) |
Set image type. More... | |
wxString | GetType () |
Get image type. More... | |
bool | IsFormObject () |
Check whether image has to be handled as a form object. More... | |
void | SetName (const wxString &name) |
Set image file name. More... | |
wxString | GetName () |
Get image file name. More... | |
int | GetWidth () |
Get image width in pixels. More... | |
int | GetHeight () |
Get image height in pixels. More... | |
int | GetX () |
Get image offset in X direction. More... | |
int | GetY () |
Get image offset in Y direction. More... | |
wxString | GetColourSpace () |
Get colour space. More... | |
int | GetBitsPerComponent () |
Get bits per component. More... | |
wxString | GetF () |
Get compression filter specification. More... | |
wxString | GetParms () |
Get additional PDF parameter. More... | |
unsigned int | GetPaletteSize () |
Get palette size. More... | |
char * | GetPalette () |
Get palette data. More... | |
unsigned int | GetTransparencySize () |
Get transparency size. More... | |
char * | GetTransparency () |
Get transparency data. More... | |
unsigned int | GetDataSize () |
Get image data size. More... | |
char * | GetData () |
Get image data. More... | |
bool | Parse () |
Parse image file. More... | |
Protected Member Functions | |
bool | ConvertWxImage (const wxImage &image, bool jpegFormat) |
Extract info from a wxImage. More... | |
bool | ParseJPG (wxInputStream *imageStream) |
Extract info from a JPEG file. More... | |
bool | ParsePNG (wxInputStream *imageStream) |
Extract info from a PNG file. More... | |
bool | ParseGIF (wxInputStream *imageStream) |
Extract info from a GIF file. More... | |
bool | ParseWMF (wxInputStream *imageStream) |
Extract info from a WMF file. More... | |
int | ReadIntBE (wxInputStream *imageStream) |
Read a 4-byte integer from file (big endian) More... | |
int | ReadIntLE (wxInputStream *imageStream) |
Read a 4-byte integer from file (little endian) More... | |
unsigned int | ReadUIntBE (wxInputStream *imageStream) |
Read a 4-byte unsigned integer from file (big endian) More... | |
unsigned int | ReadUIntLE (wxInputStream *imageStream) |
Read a 4-byte unsigned integer from file (little endian) More... | |
short | ReadShortBE (wxInputStream *imageStream) |
Read a 2-byte integer from file (big endian) More... | |
short | ReadShortLE (wxInputStream *imageStream) |
Read a 2-byte integer from file (little endian) More... | |
unsigned short | ReadUShortBE (wxInputStream *imageStream) |
Read a unsigned 2-byte integer from file (big endian) More... | |
unsigned short | ReadUShortLE (wxInputStream *imageStream) |
Read a unsigned 2-byte integer from file (little endian) More... | |
Static Protected Member Functions | |
static wxFileSystem * | GetFileSystem () |
Get the file system for accessing image files. More... | |
Protected Attributes | |
wxPdfDocument * | m_document |
Document this image belongs to. More... | |
int | m_index |
Index number of this image. More... | |
int | m_n |
Image object index. More... | |
wxString | m_type |
Image type. More... | |
wxString | m_name |
Image name. More... | |
int | m_maskImage |
Id of associated image mask. More... | |
int | m_width |
Image width in pixels. More... | |
int | m_height |
Image height in pixels. More... | |
wxString | m_cs |
Colourspace. More... | |
char | m_bpc |
Bits per colour. More... | |
wxString | m_f |
Compression method. More... | |
wxString | m_parms |
Additional PDF parameters. More... | |
unsigned int | m_palSize |
Size of palette. More... | |
char * | m_pal |
Palette data. More... | |
unsigned int | m_trnsSize |
Transparency colour size. More... | |
char * | m_trns |
Transparency colour data. More... | |
unsigned int | m_dataSize |
Image data size. More... | |
char * | m_data |
Image data. More... | |
bool | m_isFormObj |
Flag whether image must be treated as form object. More... | |
int | m_x |
Offset in X direction. More... | |
int | m_y |
Offset in Y direction. More... | |
bool | m_fromWxImage |
Flag whether image originated from wxImage. More... | |
bool | m_validWxImage |
Flag whether wxImage conversion went ok. More... | |
wxFSFile * | m_imageFile |
File system file of image. More... | |
wxInputStream * | m_imageStream |
Stream containing the image data. More... | |
Static Protected Attributes | |
static wxFileSystem * | ms_fileSystem |
File system for accessing image files. More... | |
Class representing image objects. (For internal use only)
wxPdfImage::wxPdfImage | ( | wxPdfDocument * | document, |
int | index, | ||
const wxString & | name, | ||
const wxString & | type | ||
) |
Constructor.
wxPdfImage::wxPdfImage | ( | wxPdfDocument * | document, |
int | index, | ||
const wxString & | name, | ||
const wxImage & | image, | ||
bool | jpegFormat = false |
||
) |
Constructor.
wxPdfImage::wxPdfImage | ( | wxPdfDocument * | document, |
int | index, | ||
const wxString & | name, | ||
wxInputStream & | stream, | ||
const wxString & | mimeType | ||
) |
Constructor.
|
virtual |
Destructor.
|
protected |
Extract info from a wxImage.
|
inline |
Get bits per component.
|
inline |
Get colour space.
|
inline |
Get image data.
|
inline |
Get image data size.
|
inline |
Get compression filter specification.
|
staticprotected |
Get the file system for accessing image files.
|
inline |
Get image height in pixels.
|
inline |
Get image index.
|
inline |
Check mask flag.
|
inline |
Get image file name.
|
inline |
Get object index.
|
inline |
Get palette data.
|
inline |
Get palette size.
|
inline |
Get additional PDF parameter.
|
inline |
Get transparency data.
|
inline |
Get transparency size.
|
inline |
Get image type.
|
inline |
Get image width in pixels.
|
inline |
Get image offset in X direction.
|
inline |
Get image offset in Y direction.
|
inline |
Check whether image has to be handled as a form object.
bool wxPdfImage::Parse | ( | ) |
Parse image file.
|
protected |
Extract info from a GIF file.
|
protected |
Extract info from a JPEG file.
|
protected |
Extract info from a PNG file.
|
protected |
Extract info from a WMF file.
|
protected |
Read a 4-byte integer from file (big endian)
|
protected |
Read a 4-byte integer from file (little endian)
|
protected |
Read a 2-byte integer from file (big endian)
|
protected |
Read a 2-byte integer from file (little endian)
|
protected |
Read a 4-byte unsigned integer from file (big endian)
|
protected |
Read a 4-byte unsigned integer from file (little endian)
|
protected |
Read a unsigned 2-byte integer from file (big endian)
|
protected |
Read a unsigned 2-byte integer from file (little endian)
|
inline |
Set image index.
|
inline |
Set mask flag.
|
inline |
Set image file name.
|
inline |
Set object index.
|
inline |
Set image type.
|
protected |
Bits per colour.
|
protected |
Colourspace.
|
protected |
Image data.
|
protected |
Image data size.
|
protected |
Document this image belongs to.
|
protected |
Compression method.
|
protected |
Flag whether image originated from wxImage.
|
protected |
Image height in pixels.
|
protected |
File system file of image.
|
protected |
Stream containing the image data.
|
protected |
Index number of this image.
|
protected |
Flag whether image must be treated as form object.
|
protected |
Id of associated image mask.
|
protected |
Image object index.
|
protected |
Image name.
|
protected |
Palette data.
|
protected |
Size of palette.
|
protected |
Additional PDF parameters.
|
protected |
Transparency colour data.
|
protected |
Transparency colour size.
|
protected |
Image type.
|
protected |
Flag whether wxImage conversion went ok.
|
protected |
Image width in pixels.
|
protected |
Offset in X direction.
|
protected |
Offset in Y direction.
|
staticprotected |
File system for accessing image files.