←Select platform

SaveToTag(AnnContainer,int,bool) Method

Summary
Saves the annotation objects in a container to a TIFF tag.
Syntax
C#
C++/CLI
Python
public:  
   RasterTagMetadata^ SaveToTag( 
      AnnContainer^ container, 
      Int32 pageNumber, 
      bool saveToWang 
   ) 
def SaveToTag(self,container,pageNumber,saveToWang): 

Parameters

container
The AnnContainer containing the objects to be saved.

pageNumber 1-based index of the page for where the annotations should 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 22.0.2023.7.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.