ImageEn, unit iexBitmaps

TIOParams.ImageEnAnnot

TIOParams.ImageEnAnnot


Declaration

property ImageEnAnnot: TIEImageEnAnnot;


Description

Provides access to the TImageEnVect objects or TImageEnView layers loaded (or to be saved) from a TIFF or JPEG.
Using a TIEImageEnAnnot object you can create new objects, copy to or from a TImageEnVect (as vectorial objects) or TImageEnView (as layers), or just draw onto the bitmap.


ImagingAnnot vs ImageEnAnnot

ImagingAnnot handles annotations that are supported by other third party applications, but does not support all layer types of TImageEnView. ImageEnAnnot supports all layer types of TImageEnView, but are not understood by other applications.


Example

// Load an image and all annotations from input.tif to a TImageEnVect. This allows the annotations to be edited:
ImageEnVect1.IO.LoadFromFile('C:\input.tif');
ImageEnVect1.IO.Params.ImageEnAnnot.CopyToTImageEnVect();

// Load an image and all annotations from input.jpg to a TImageEnView. This allows the annotations to be edited:
ImageEnView1.IO.LoadFromFile('C:\input.jpg');
ImageEnView1.IO.Params.ImageEnAnnot.CopyToTImageEnView();

// Load an image and all annotations from input.tif, but just draw annotation on the image (display only, cannot be edited):
ImageEnVect1.IO.LoadFromFile('C:\input.tif');
ImageEnVect1.IO.Params.ImageEnAnnot.DrawToBitmap( ImageEnVect1.IEBitmap, True );
ImageEnVect1.Update();

// Save an image and all annotations to output.tif
ImageEnVect1.IO.Params.ImageEnAnnot.CopyFromTImageEnVect();
ImageEnVect1.IO.SaveToFile('C:\output.tif');