IBitmapIO_Bmp Class Reference
 
 
 
IBitmapIO_Bmp Class Reference

#include <istdplug.h>

Inheritance diagram for IBitmapIO_Bmp:
FPStaticInterface FPInterfaceDesc FPInterface BaseInterface InterfaceServer MaxHeapOperators

Class Description

This class represents the interface for the Bitmap IO BMP format.

The interfaceID is defined as BMPIO_INTERFACE. Through C++ you can access the interface the following way:

ClassEntry* ce = ip->GetDllDirectory()->ClassDir().FindClassEntry(BMM_IO_CLASS_ID, Class_ID(BMPCLASSID,0));
if (ce)
{
        ClassDesc* cd = ce->FullCD();
        if (cd) {
                IBitmapIO_Bmp* ib = (IBitmapIO_Bmp*)cd->GetInterface(BMPIO_INTERFACE);
                if (ib) {
                        int i = ib->GetType();
                        ib->SetType(i);
                }
        }
}

Public Member Functions

virtual int  GetType ()=0
virtual void  SetType (int type)=0

Member Function Documentation

virtual int GetType ( ) [pure virtual]
Remarks:
This method returns the format type, which is one of the following; BMM_PALETTED, BMM_TRUE_24 and BMM_NO_TYPE (which is equivalent to BMM_TRUE_24).
virtual void SetType ( int  type ) [pure virtual]
Remarks:
This method allows you to set the format type.
Parameters:
int type

The type, which is one of the following; BMM_PALETTED, BMM_TRUE_24 and BMM_NO_TYPE (which is equivalent to BMM_TRUE_24).