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