Graphisoft®

GX ModuleVersion: 16

NativeImage

Graphisoft's own image implementation, optimized for drawing on a NativeContext.

Constructors

    NativeImage ();

Create an empty NativeImage.

NativeImage (
        UInt32 width,
        UInt32 height,
        const NativeImage& imageForColorData
);

Create a NativeImage with another NativeImage's color settings.

NativeImage (
        UInt32 width,
        UInt32 height,
        UInt32 bitDepth,
        const void* bits,
        bool perPixelAlpha = false,
        UInt32 bytesPerRow = 0
);

Create a NativeImage from the data adressed by the "bits" parameter.

explicit NativeImage (
        const char* data
        UInt32 size
        Encoding format
        );

Create a NativeImage from the data pointed by "data" parameter.

explicit NativeImage (
        GSResID resID
        Encoding format
        GSResModule module
        );

Create a NativeImage from the specified resource. The "module" parameter have a default AllResModule value.

Macintosh constructors

explicit NativeImage (
        CGImageRef image,
        bool& perPixelAlpha
        );

Create a NativeImage from a CGIImageRef. The perPixelAlpha parameter has 'false' default value.

Windows constructors

explicit NativeImage (
        HBITMAP bitmap
        );

Create a NativeImage from a HBITMAP.

explicit NativeImage (
        HENHMETAFILE metaFile
        UInt32 width
        UInt32 height
        );

Create a NativeImage from a HENHMETAFILE.

Member Functions

GetHeight

GetWidth

SetColorKey

GetContext

ReleaseContext

Encode