HatchCreateΒΆ

HatchCreate creates a hatch object. A hatch object is used for x/y datasets.

hHatch = HatchCreate()
hHatch = HatchCreate(hHatchOther)
hHatch = HatchCreate(nStyle, rsDistance, rsOffset, nWidth, rvColorRGB)

Return Value

hHatch is the handle that can be used to access a hatch object. If the object cannot be created, hHatch is 0.

Parameters

nStyle

nStyle is an OR combination of the following values:

Value Meaning
HATCH_0 Hatch 0 degrees
HATCH_45 Hatch 45 degrees
HATCH_90 Hatch 90 degrees
HATCH_135 Hatch 135 degrees
rsDistance

rsDistance is the distance between the hatch lines in centimeters.

rsOffset

rsOffset is the offset of the hatch origin in centimeters.

nWidth

nWidth specifies the line width of the hatch lines in 0.1 mm.

rvColorRGB

rvColorRGB is a vector with 3 elements that sets the hatch line color.

Value Meaning
rvColorRGB[1] Red (0 to 255)
rvColorRGB[2] Green (0 to 255)
rvColorRGB[3] Blue (0 to 255)

History

Version Description
4.2.7 Function can be invoked with one parameter (copy constructor).

id-245745