AddPixMapRec


Adds a pixmap to the VectorImage.


GSErrCode  AddPixMapRec (
    const Sy_PixMapType&    pixHeader,
    GSHandle                pixMemoHdl,
    const char*             mimeType = NULL
);

Parameters

pixHeader
The vector primitive header for the pixmap to be added.
pixMemoHdl
The full GSPixMapHandle.
mimeType
The standard mime-type of the desired compression format.

Return value

If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.

Description

All of the fields of the structure should be filled, this function won’t update any of them.
Addition always merges the new record to the end of the primitives list but drawing order can differ from placing order. The pixmaps are always stored in the VectorImage in compressed format.

Requirements

Version:API 10.0 or later, ModelerGraphics 8 or later
Library:ModelerGraphicsImp.lib (Win) or ModelerGraphics.framework (Mac)
Header:VectorImage.hpp