ImageGear22.Core Assembly > ImageGear.Formats Namespace > ImGearFileFormats Class > UpdatePageMetadata Method : UpdatePageMetadata(Stream,Stream,ImGearMetadataHead,Int32) Method |
'Declaration Public Overloads Shared Sub UpdatePageMetadata( _ ByVal sourceStream As Stream, _ ByVal destinationStream As Stream, _ ByVal metadata As ImGearMetadataHead, _ ByVal pageNumber As Integer _ )
'Usage Dim sourceStream As Stream Dim destinationStream As Stream Dim metadata As ImGearMetadataHead Dim pageNumber As Integer ImGearFileFormats.UpdatePageMetadata(sourceStream, destinationStream, metadata, pageNumber)
public static void UpdatePageMetadata( Stream sourceStream, Stream destinationStream, ImGearMetadataHead metadata, int pageNumber )
public: static void UpdatePageMetadata( Stream* sourceStream, Stream* destinationStream, ImGearMetadataHead* metadata, int pageNumber )
public: static void UpdatePageMetadata( Stream^ sourceStream, Stream^ destinationStream, ImGearMetadataHead^ metadata, int pageNumber )
Exception | Description |
---|---|
System.ArgumentNullException | Thrown if the specified stream is null or metadata parameter is null. |
ImageGear.Core.ImGearException | Thrown with ImGearErrorCodes.PAGE_NOT_PRESENT error code if the page with the specified page number does not exist in the image, or the page with the specified page number represents DICOM vector waveform data. Thrown with ImGearErrorCodes.CANT_SAVE_FORMAT error code if the metadata cannot be updated due to invalid data in the source stream. |