Character AddHatchPatternLine

Adds a Line type pattern to the character

Overloads

public void AddHatchPatternLine(float borderGap, HatchLineBorderGapDirection borderGapDirection, float lineGap, float lineAngle, float baseX, float baseY, HatchLineStyle hatchStyle, bool withOffset, HatchOffsetAlgorithm algorithm, HatchCornerStyle cornerStyle, int repeatCount)

 

Return value

void  

 

Parameters

float borderGap The distance between the Hatch boundary and the Object boundary
float lineGap The spacing between the hatching lines
float lineAngle The angle (radians) of the hatching lines
float baseX Set a special x point through which at least one hatch line will be passed
float baseY Set a special y point through which at least one hatch line will be passed
bool withOffset Offset the object boundary if a border gap has defined
HatchLineBorderGapDirection borderGapDirection Set the border gap direction
HatchLineStyle hatchStyle Set the hatching style
HatchOffsetAlgorithm algorithm Set the hatching algorithm
HatchCornerStyle cornerStyle Set the corner style
int repeatCount Set the repeat count

 

Example

Copy
TextShape text = new TextShape();

Character character = new Character();
character.CharacterUnicode = 'A';
character.Height = 10;
character.FontName = "Arial";
character.FontStyle = FontStyle.Regular;
character.ScaleX = 2;
character.ScaleY = 2;
character.AddHatchPatternLine(0.125f, HatchLineBorderGapDirection.Inward, .1f, 0, 0, 0,
HatchLineStyle.Unidirectional, true, HatchOffsetAlgorithm.DirectOffset, HatchCornerStyle.SmoothWithLines, 1);

text.Characters.Add(character);