a2dCanvasDocumentIOHandlerImageIn Class Reference
[File IO]

Input and output handler for a2dCanvasDocument to/from a wxImage. More...

#include <imageioh.h>

Inheritance diagram for a2dCanvasDocumentIOHandlerImageIn:

Inheritance graph
[legend]
Collaboration diagram for a2dCanvasDocumentIOHandlerImageIn:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dCanvasDocumentIOHandlerImageIn (wxBitmapType type=wxBITMAP_TYPE_ANY)
 Constructor.
 ~a2dCanvasDocumentIOHandlerImageIn ()
 Destructor.
virtual bool CanLoad (a2dDocumentInputStream &stream, const wxObject *obj=NULL, wxClassInfo *docClassInfo=NULL)
 test header of the file to see if it can be loaded
virtual bool Load (a2dDocumentInputStream &stream, wxObject *doc)
 load a complete document which contains an image
void SetImageSize (const wxSize &size)
 Set the size of the image to create.
void SetType (wxBitmapType type)
 set the image type to load from, wxBITMAP_TYPE_ANY means outdetect from filename in CanSave().
wxBitmapType GetType ()
 return the image type to load from, wxBITMAP_TYPE_ANY means outdetect from filename in CanSave().

Protected Member Functions

wxBitmapType DetectImageType ()
 for the stream, detect what image type it contains

Protected Attributes

a2dCanvasDocumentm_doc
 the document to store/load the data found into
wxSize m_imageSize
 image size that will be created.
wxBitmapType m_type
 image type


Detailed Description

Input and output handler for a2dCanvasDocument to/from a wxImage.

Definition at line 26 of file imageioh.h.


The documentation for this class was generated from the following files:
a2dCanvasDocumentIOHandlerImageIn Class Reference -- Tue Aug 31 18:12:32 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation