Visual Basic
C#
Managed Extensions for C++
C++/CLI
C# | Copy Code |
---|---|
// Setup rectangle for the pinup mark's location. ImGearRectangle igRectangle = new ImGearRectangle(10, 10, 300, 100); // Setup color for the text. ImGearRGBQuad igRGBQuadText = new ImGearRGBQuad(0, 0, 0); // Setup color for the pin. ImGearRGBQuad igRGBQuadPin = new ImGearRGBQuad(40, 200, 40); // Create pinup mark using size 14 bold Arial font ImGearARTPinUpText igARTPinUpText = new ImGearARTPinUpText( igRectangle, "ImGearARTPinUpText test", igRGBQuadText, "Arial", (float)14.0, ImGearARTFontStyles.Bold, igRGBQuadPin ); // Add the annotation to the ARTPage. igARTPage.AddMark(igARTPinUpText, ImGearARTCoordinatesType.IMAGE_COORD); |
Visual Basic | Copy Code |
---|---|
' Setup rectangle for the pinup mark's location. Dim igRectangle As New ImGearRectangle(10, 10, 300, 100) ' Setup color for the text. Dim igRGBQuadText As New ImGearRGBQuad(0, 0, 0) ' Setup color for the pin. Dim igRGBQuadPin As New ImGearRGBQuad(40, 200, 40) ' Create pinup mark using size 14 bold Arial font Dim igARTPinUpText As New ImGearARTPinUpText( _ igRectangle, "ImGearARTPinUpText test", igRGBQuadText, _ "Arial", CSng(14), ImGearARTFontStyles.Bold, igRGBQuadPin) ' Add the annotation to the ARTPage. igARTPage.AddMark(igARTPinUpText, ImGearARTCoordinatesType.IMAGE_COORD) |
System.Object
ImageGear.ART.ImGearARTSelection
ImageGear.ART.ImGearARTMark
ImageGear.ART.ImGearARTPinUpText