ImageGear for .NET
ImGearARTTextCallout Class
Members  Example  See Also  Send Feedback
ImageGear21.Art Assembly > ImageGear.ART Namespace : ImGearARTTextCallout Class




Glossary Item Box

Represents legacy ART Callout Text mark.

Object Model

ImGearARTTextCallout ClassImGearRectangle StructureImGearARTCallout ClassImGearSize StructureImGearRectangle StructureImGearRectangle StructureIImGearRGBQuad Interface

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Example

C#Copy Code
// Setup color for the callout border.
ImGearRGBQuad igRGBQuadBorderCallout = new ImGearRGBQuad(0, 255, 255);
// Setup a border with a width of 3 and a solid pattern.
ImGearARTBorder igARTBorderCallout = new ImGearARTBorder(
    igRGBQuadBorderCallout, 3, ImGearARTPenStyle.SOLID
);
// Create a callout to be used for the annotation.
ImGearARTCallout igARTCallout = new ImGearARTCallout(
    ImGearARTCalloutType.LINE, igPage.DIB.Width / 2,
    igPage.DIB.Height / 2, igARTBorderCallout
);
// Setup rectangle for the text mark's location.
ImGearRectangle igRectangle = new ImGearRectangle(10, 10, 200, 20);
// Setup color for the text.
ImGearRGBQuad igRGBQuadText = new ImGearRGBQuad(255, 0, 255);
// Create the text callout annotation.
ImGearARTTextCallout igARTTextCallout = new ImGearARTTextCallout(
    igRectangle, "ImGearARTText annotation", igRGBQuadText,
    "Arial", (float)14.0, ImGearARTFontStyles.Regular, igARTCallout
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTTextCallout, ImGearARTCoordinatesType.IMAGE_COORD);
Visual BasicCopy Code
' Setup color for the callout border.
Dim igRGBQuadBorderCallout As New ImGearRGBQuad(0, 255, 255)
' Setup a border with a width of 3 and a solid pattern.
Dim igARTBorderCallout As New ImGearARTBorder(igRGBQuadBorderCallout, 3, ImGearARTPenStyle.SOLID)
' Create a callout to be used for the annotation.
Dim igARTCallout As New ImGearARTCallout( _
 ImGearARTCalloutType.LINE, igPage.DIB.Width / 2, _
 igPage.DIB.Height / 2, igARTBorderCallout)
' Setup rectangle for the text mark's location.
Dim igRectangle As New ImGearRectangle(10, 10, 200, 20)
' Setup color for the text.
Dim igRGBQuadText As New ImGearRGBQuad(255, 0, 255)
' Create the text callout annotation.
Dim igARTTextCallout As New ImGearARTTextCallout( _
 igRectangle, "ImGearARTText annotation", igRGBQuadText, _
 "Arial", CSng(14), ImGearARTFontStyles.Regular, igARTCallout)
' Add the annotation to the ARTPage.
igARTPage.AddMark(igARTTextCallout, ImGearARTCoordinatesType.IMAGE_COORD)

Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTTextCallout

See Also

©2013. Accusoft Corporation. All Rights Reserved.