ImageGear .NET v25.2 - Updated
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
public class ImGearARTRectangle : ImGearARTMark, IImGearARTRectangle  
public __gc class ImGearARTRectangle : public ImGearARTMark, IImGearARTRectangle  
public ref class ImGearARTRectangle : public ImGearARTMark, IImGearARTRectangle  
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);
' 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

Reference

ImGearARTRectangle Members
ImageGear.ART Namespace

Is this page helpful?
Yes No
Thanks for your feedback.