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




Glossary Item Box

Represents legacy ART Embedded Image mark.

Object Model

ImGearARTImageEmb ClassImGearRectangle StructureImGearRectangle StructureImGearPage Class

Syntax

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

Example

C#Copy Code
// Setup rectangle for the embedded image mark's location.
ImGearRectangle igRectangle = new ImGearRectangle(10, 10, 100, 100);
// Load an image to embed
ImGearPage igPageEmbedded;
using (FileStream localFile = new FileStream("photo.jpg", FileMode.Open))
{
    igPageEmbedded = ImGearFileFormats.LoadPage(localFile, 0);
}
// Create embedded image mark using igPageEmbedded.
ImGearARTImageEmb igARTImageEmb = new ImGearARTImageEmb(
    igRectangle, igPageEmbedded
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTImageEmb, ImGearARTCoordinatesType.IMAGE_COORD);
Visual BasicCopy Code
' Setup rectangle for the embedded image mark's location.
Dim igRectangle As New ImGearRectangle(10, 10, 100, 100)
' Load an image to embed
Dim igPageEmbedded As ImGearPage
Using localFile As New FileStream("photo.jpg", FileMode.Open)
    igPageEmbedded = ImGearFileFormats.LoadPage(localFile, 0)
End Using
' Create embedded image mark using igPageEmbedded.
Dim igARTImageEmb As New ImGearARTImageEmb( _
 igRectangle, igPageEmbedded)
' Add the annotation to the ARTPage.
igARTPage.AddMark(igARTImageEmb, ImGearARTCoordinatesType.IMAGE_COORD)

Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTImageEmb

See Also

©2013. Accusoft Corporation. All Rights Reserved.