Sy_​PictureType

Defines a Macintosh picture or a Windows DIB.

struct Sy_PictureType {
    long             item_Len;
    unsigned char    item_Typ;
    char             drwIndex;
    short            sy_layer;
    bool             mirrored;
    char             anchorPoint;
    short            colorDepth;
    short            pixelSizeX;
    short            pixelSizeY;
    short            storageFormat;
    unsigned short   pictPlatform;
    long             filler_2;
    Box2DData        destBox;
    Box2DData        origBox;
    char             pictName[32];
    double           rotAngle;
    long             picHdlLen;
    long             picHdlOff;
    long             figHdlLen;
    long             figHdlOff;
    bool             transparent;
    char             filler_3_1;
    short            filler_3;
    long             filler_4;
    long             filler_5;
    long             filler_6;
};

Members

item_Len
The length of the data record = figHdlOff+ROUND_UP_8(figHdlLen).
item_Typ
Constant SyPicture.
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 picture.
pixelSizeX
The pixel size in X direction.
pixelSizeY
The pixel size in X direction.
storageFormat
The storage format.
pictPlatform
The platform of the picture. It could be the ‘WW’ or ‘MM’. On Windows it is a DIB, on Macintosh it is a Picture.
filler_2
Reserved, should be 0.
destBox
The destination box.
origBox
The original box.
pictName
The stored name of the picture.
rotAngle
The rotation of the picture.
picHdlLen
The size of the picture data in bytes.
picHdlOff
Offset of the PicHandle from record start = sizeof(Sy_PictureType).
figHdlLen
The size of the figure data in bytes.
figHdlOff
Offset of the figure data from record start = sizeof(Sy_PictureType) + ROUND_UP_8(picHdlLen).
transparent
True if the picture should be transparent.
filler_3_1
Reserved, should be 0.
filler_3
Reserved, should be 0.
filler_4
Reserved, should be 0.
filler_5
Reserved, should be 0.
filler_6
Reserved, should be 0.

Remarks

A picture is a raster image.

Requirements

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

See Also

VectorImage