Adds the specified mark into default annotation page group.
Syntax
Parameters
- mark
- Reference to the mark to add.
- type
- Type of the coordinate system the mark coordinates are specified in.
Return Value
Integer value.
Example
// Setup rectangle for new annotation.
ImGearRectangle igRectangle = new ImGearRectangle(0,0,200,20);
// Setup color for annotation.
ImGearRGBQuad igRGBQuad = new ImGearRGBQuad(0, 255, 0);
// Create the annotation.
ImGearARTTypedText igARTTypedText = new ImGearARTTypedText(
igRectangle, "Test Typed Text Annotation", igRGBQuad
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTTypedText, ImGearARTCoordinatesType.IMAGE_COORD);
'Setup rectangle for new annotation.
Dim igRectangle As ImGearRectangle = New ImGearRectangle(0, 0, 200, 20)
'Setup color for annotation.
Dim igRGBQuad As ImGearRGBQuad = New ImGearRGBQuad(0, 255, 0)
'Create the annotation.
Dim igARTTypedText As ImGearARTTypedText = New ImGearARTTypedText( _
igRectangle, "Test Typed Text Annotation", igRGBQuad _
)
'Add the annotation to the ARTPage.
igARTPage.AddMark(igARTTypedText, ImGearARTCoordinatesType.IMAGE_COORD)
See Also