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