←Select platform

SaveToTag(AnnContainer,bool) Method

Summary

Saves the annotation objects in a container to a TIFF tag.

Syntax
C#
VB
C++
Public Function SaveToTag( _ 
   ByVal container As AnnContainer, _ 
   ByVal saveToWang As Boolean _ 
) As RasterTagMetadata 
public:  
   RasterTagMetadata^ SaveToTag( 
      AnnContainer^ container, 
      bool saveToWang 
   ) 

Parameters

container
The AnnContainer containing the objects to be saved.

saveToWang
A value that specifies the format used when creating the tag. If true it is a Wang tag, otherwise it is a LEAD tag.

Return Value

An Leadtools.RasterTagMetadata object that can be saved into a TIFF file.

Remarks

This method will return a Leadtools.RasterTagMetadata object with Id = AnnotationTiff (the value 80A4 in hexadecimal).

After calling this method, you can save the Leadtools.RasterTagMetadata object returned into an existing TIFF file by calling the >RasterCodecs.WriteTag method or one of the RasterCodecs.WriteTags methods.

This method can return null (Nothing in VB) if you try to save unsupported objects to certain formats (for example, if you try to save an AnnAudioObject to a Wang format).

Requirements

Target Platforms

See Also

Reference

AnnCodecs Class

AnnCodecs Members

Help Version 20.0.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly