Leadtools.Codecs Namespace > RasterCodecs Class : DeleteTagAsync Method |
public IAsyncAction DeleteTagAsync( ILeadStream stream, int pageNumber, int id )
'Declaration Public Function DeleteTagAsync( _ ByVal stream As ILeadStream, _ ByVal pageNumber As Integer, _ ByVal id As Integer _ ) As IAsyncAction
'Usage Dim instance As RasterCodecs Dim stream As ILeadStream Dim pageNumber As Integer Dim id As Integer Dim value As IAsyncAction value = instance.DeleteTagAsync(stream, pageNumber, id)
public IAsyncAction DeleteTagAsync( ILeadStream stream, int pageNumber, int id )
function Leadtools.Codecs.RasterCodecs.DeleteTagAsync( stream , pageNumber , id )
public: IAsyncAction^ DeleteTagAsync( ILeadStream^ stream, int pageNumber, int 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. Recompression is not performed under any of these cases.
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