Visual Basic
C#
Managed Extensions for C++
C++/CLI
C# | Copy Code |
---|---|
// Setup rectangle for the rectangle mark's location. ImGearRectangle igRectangle = new ImGearRectangle(10, 10, 300, 100); // Setup color for the rectangle. ImGearRGBQuad igRGBQuadFill = new ImGearRGBQuad(40, 200, 40); // Setup color for the rectangle border. ImGearRGBQuad igRGBQuadBorder = new ImGearRGBQuad(0, 0, 0); // Create rectangle with a solid border of width 10, and 33% opacity. ImGearARTRectangle igARTRectangle = new ImGearARTRectangle( igRectangle, igRGBQuadFill, igRGBQuadBorder, ImGearARTPenStyle.SOLID, 10, (int)(0.33 * 255) ); // Add the annotation to the ARTPage. igARTPage.AddMark(igARTRectangle, ImGearARTCoordinatesType.IMAGE_COORD); |
Visual Basic | Copy Code |
---|---|
' Setup rectangle for the rectangle mark's location. Dim igRectangle As New ImGearRectangle(10, 10, 300, 100) ' Setup color for the rectangle. Dim igRGBQuadFill As New ImGearRGBQuad(40, 200, 40) ' Setup color for the rectangle border. Dim igRGBQuadBorder As New ImGearRGBQuad(0, 0, 0) ' Create rectangle with a solid border of width 10, and 33% opacity. Dim igARTRectangle As New ImGearARTRectangle( _ igRectangle, igRGBQuadFill, igRGBQuadBorder, _ ImGearARTPenStyle.SOLID, 10, CInt(0.33 * 255)) ' Add the annotation to the ARTPage. igARTPage.AddMark(igARTRectangle, ImGearARTCoordinatesType.IMAGE_COORD) |
System.Object
ImageGear.ART.ImGearARTSelection
ImageGear.ART.ImGearARTMark
ImageGear.ART.ImGearARTRectangle