Sy_​PixMapType

Defines a raster image in an arbitrary format which has a registered mime type.

struct Sy_PixMapType {
    long             item_Len;
    unsigned char    item_Typ;
    char             drwIndex;
    short            sy_layer;
    bool             mirrored;
    char             anchorPoint;
    short            colorDepth;
    short            pixelSizeX;
    short            pixelSizeY;
    unsigned long    pixMapFormat;
    long             filler_2;
    Box2DData        destBox;
    Box2DData        origBox;
    char             pixName[32];
    double           rotAngle;
    long             pixHdlLen;
    long             pixHdlOff;
    bool             transparent;
    char             filler_3_1;
    short            filler_3;
    long             mimeTypeLen;
    long             mimeTypeOff;
    long             filler_6;
};

Members

item_Len
The length of the data record = mimeTypeOff+ROUND_UP_8(mimeTypeLen).
item_Typ
Constant SyPixMap.
drwIndex
Index in drawing order or 0.
sy_layer
The number of the fragment (layer) this element belongs to (Ranges 1 – 16).
mirrored
True, if mirrored to local vertical axis.
anchorPoint
The anchor point type (1..9).
colorDepth
The color depth of the pixmap.
pixelSizeX
The pixel size in X direction.
pixelSizeY
The pixel size in Y direction.
pixMapFormat
Reserved, should be 0.
filler_2
Reserved, should be 0.
destBox
The destination box.
origBox
The original box.
pixName
The stored name of the picture.
rotAngle
The rotation of the picture.
pixHdlLen
The size of the figure data in bytes.
pixHdlOff
Offset of the figure data from record start = sizeof(Sy_PixMapType).
transparent
If true the white pixels will be fully transparent.
filler_3_1
Reserved, should be 0.
filler_3
Reserved, should be 0.
mimeTypeLen
The size of the mime type data in bytes.
mimeTypeOff
Offset of the figure data from record start = pixHdlOff + ROUND_UP_8(pixHdlLen).
filler_6
Reserved, should be 0.

Remarks

A pixmap is a raster image. Of course there are some formats which are legal, but Archicad won’t display it because not able to decode. Our most supported formats at the time of writing is PNG and JPEG. We are not support GIFs, because of patent issues.

Requirements

Version: API 10.0 or later, ModelerGraphics 8 or later
Header: Symb2D.h

See Also

VectorImage