- container
- The AnnContainer containing the objects to be saved.
- format
- An AnnCodecsTagFormat value that specifies the format used when creating the tag.
Visual Basic (Declaration) | |
---|---|
Public Function SaveToTag( _ ByVal container As AnnContainer, _ ByVal format As AnnCodecsTagFormat _ ) As RasterTagMetadata |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public RasterTagMetadata SaveToTag( AnnContainer container, AnnCodecsTagFormat format ) |
C++/CLI | |
---|---|
public: RasterTagMetadata SaveToTag( AnnContainer^ container, AnnCodecsTagFormat format ) |
Parameters
- container
- The AnnContainer containing the objects to be saved.
- format
- An AnnCodecsTagFormat value that specifies the format used when creating the tag.
Return Value
An RasterTagMetadata object that can be saved into a TIFF file.
Visual Basic | Copy Code |
---|---|
Public Sub AnnCodecs_SaveToTag(ByVal tifFileName As String) |
C# | Copy Code |
---|---|
public void AnnCodecs_SaveToTag(string tifFileName) |
This method will return a tag with ID = .AnnotationTiff (the value 80A4 in hexadecimal).
After calling this method, you can save the RasterTagMetadata object returned into an existing TIFF file by calling the WriteTag method or one of the RasterCodecs.WriteTags(Stream, int, RasterCollection<RasterTagMetadata>) methods.
This method can return null (Nothing in Visual Basic) if you try to save unsupported objects to certain formats (for example, if you try to save an AnnAudioObject to a Wang format).
For more information, refer to Annotation Files.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family