ImageGear PDF v25.1 - Updated July 30, 2021
ImGearARTRectangle Class
Members  Example 




ImageGear.Art Assembly > ImageGear.ART Namespace : ImGearARTRectangle Class
Represents ART Rectangle mark.
Object Model
ImGearARTRectangle ClassImGearARTBorder ClassImGearRectangle StructureIImGearRGBQuad InterfaceImGearRectangle Structure
Syntax
'Declaration
 
Public Class ImGearARTRectangle 
   Inherits ImGearARTMark
   Implements IImGearARTRectangle 
 
'Usage
 
Dim instance As ImGearARTRectangle
Example
// 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);
Inheritance Hierarchy

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

See Also

Reference

ImGearARTRectangle Members
ImageGear.ART Namespace