Leadtools.Codecs Namespace > RasterCodecs Class > DeleteTag Method : DeleteTag(Stream,Int32,Int32) Method |
'Declaration Public Overloads Sub DeleteTag( _ ByVal stream As Stream, _ ByVal pageNumber As Integer, _ ByVal id As Integer _ )
'Usage Dim instance As RasterCodecs Dim stream As Stream Dim pageNumber As Integer Dim id As Integer instance.DeleteTag(stream, pageNumber, id)
function Leadtools.Codecs.RasterCodecs.DeleteTag(Stream,Int32,Int32)( stream , pageNumber , id )
If you want to delete the tag from a particular IFD in the file, set RasterCodecs.Options.Tiff.Save.UseImageFileDirectoryOffset to true, and set RasterCodecs.Options.Tiff.Save.ImageFileDirectoryOffset to the IFD in question. This method will delete tags only from the main IFDs that make up an image. Some TIFF tags are themselves SubIFDs. You can delete tags from such SubIFDs by using RasterCodecs.Options.Tiff.Save.UseImageFileDirectoryOffset and RasterCodecs.Options.Tiff.Save.ImageFileDirectoryOffset specifying the IFD as above.
Notes:
When you add or remove tags, the tags array at the end of the file is re-written. When you modify existing tags, the new tag value is added to the file and the IFD is modified as necessary. In all of these cases, there is no image recompression.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2