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




Glossary Item Box

Represents ART Rectangle mark.

Object Model

ImGearARTRectangle ClassImGearARTBorder ClassImGearRectangle StructureIImGearRGBQuad InterfaceImGearRectangle Structure

Syntax

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

Example

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 BasicCopy 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)

Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTRectangle

See Also

©2013. Accusoft Corporation. All Rights Reserved.