ImageGear for Silverlight
ImGearARTImage Class
Members  Example  See Also  Send Feedback
ImageGear20.Art Assembly > ImageGear.ART Namespace : ImGearARTImage Class




Glossary Item Box

Represents ART Image mark.

Object Model

ImGearARTImage ClassImGearARTBorder ClassImGearRectangle StructureImGearRectangle StructureImGearPage Class

Syntax

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

Example

C#Copy Code
ImGearPage image;

// Select an image file to load.
OpenFileDialog dlg = new OpenFileDialog();
if (dlg.ShowDialog() != true)
{
    return;
}

// Load an image file.
using (FileStream file = dlg.File.OpenRead())
{
    image = ImGearFileFormats.LoadPage(file, 0);
}

// Setup rectangle for the image mark's location.
ImGearRectangle rectangle = new ImGearRectangle(10, 10, 100, 100);

// Create image mark using an image.
ImGearARTImage artImage = new ImGearARTImage(rectangle, image);

// Add the annotation to the ARTPage.
igArtPage.AddMark(artImage, ImGearARTCoordinatesType.IMAGE_COORD);
Visual BasicCopy Code
Dim image As ImGearPage

' Select an image file to load.
Dim dlg As New OpenFileDialog()
If dlg.ShowDialog() <> True Then
    Return
End If

' Load an image file.
Using file As FileStream = dlg.File.OpenRead()
    image = ImGearFileFormats.LoadPage(file, 0)
End Using

' Setup rectangle for the image mark's location.
Dim rectangle As New ImGearRectangle(10, 10, 100, 100)

' Create image mark using an image.
Dim artImage As New ImGearARTImage(rectangle, image)

' Add the annotation to the ARTPage.
igArtPage.AddMark(artImage, ImGearARTCoordinatesType.IMAGE_COORD)

Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTImage

See Also

©2013. Accusoft Corporation. All Rights Reserved.