Graphisoft®

API Development KitVersion: 18

VectorImage::AddHatch


Adds a hatch to the VectorImage.


GSErrCode  AddHatch (
    short               contPen,
    short               fillPen,
    short               fillind,
    long                nCoords,
    double*             coords,
    double*             angles
);

Parameters

contPen
The drawing pen of the contour of the hatch.
fillPen
The pen of the fill of the hatch.
fillind
The fill-type index of the hatch.
nCoords
The count of vertices.
coords
The contour: a pair of doubles means a vertex. It should consist of 2 * nCoords doubles.
angles
The view angles of the edges. It should consist of nCoords doubles.

Return value

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

Description

Addition always merges the new item to the end of the primitives list but drawing order can differ from placing order.

Requirements

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