LEADTOOLS Annotations (Leadtools.Annotations assembly)

AnnImageObject Class

Show in webframe
Example 





Members 
Defines an annotation image object.
Object Model
Syntax
Remarks
The image annotation object is a raster image defined by a bounding rectangle. This object does not support pens or brushes.

The AnnAudioObject and the AnnHotspotObject classes inherit the AnnImageObject class and access the common Picture property through this inheritance. For more information, refer to Using Pictures in Annotation Objects

Example
Copy Code  
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.Codecs
Imports Leadtools.WinForms

Private Sub AnnImageObject_AnnImageObject(ByVal container As AnnContainer, ByVal imageFileName As String)
   Dim img As AnnImageObject = New AnnImageObject()
   Dim pic As AnnPicture = New AnnPicture(Image.FromFile(imageFileName))
   pic.TransparentMode = AnnPictureTransparentMode.None
   pic.TransparentColor = Color.Black
   img.Picture = pic
   img.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel)
   container.Objects.Add(img)
End Sub
using Leadtools;
using Leadtools.Annotations;
using Leadtools.Codecs;
using Leadtools.WinForms;

private void AnnImageObject_AnnImageObject(AnnContainer container, string imageFileName)
{
   AnnImageObject img = new AnnImageObject();
   AnnPicture pic = new AnnPicture(Image.FromFile(imageFileName));
   pic.TransparentMode = AnnPictureTransparentMode.None;
   pic.TransparentColor = Color.Black;
   img.Picture = pic;
   img.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel);
   container.Objects.Add(img);
}
Requirements

Target Platforms

See Also

Reference

AnnImageObject Members
Leadtools.Annotations Namespace

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.