GdPicture.NET Reference Guide
GetTiffCompression Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : GetTiffCompression Method
GdPicture Image Identifier.
Returns the compression scheme of a GdPicture image (TIFF format only).
Syntax
'Declaration
 
Public Function GetTiffCompression( _
   ByVal ImageID As Integer _
) As TiffCompression
public TiffCompression GetTiffCompression( 
   int ImageID
)
public function GetTiffCompression( 
    ImageID: Integer
): TiffCompression; 
public function GetTiffCompression( 
   ImageID : int
) : TiffCompression;
public: TiffCompression GetTiffCompression( 
   int ImageID
) 
public:
TiffCompression GetTiffCompression( 
   int ImageID
) 

Parameters

ImageID
GdPicture Image Identifier.

Return Value

A member of the TiffCompression enumeration
Example
Retrieving the image's TiffCompression.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.tif")
If imageId <> 0 Then
   If oGdPictureImaging.GetBitDepth(ImageID) = 1 Then
      Dim ImgTiffCompression As TiffCompression = oGdPictureImaging.GetTiffCompression(ImageID)
      oGdPictureImaging.FxBitonalDespeckle(ImageID, False)
      oGdPictureImaging.SaveAsTIFF(ImageID, "test.tif", ImgTiffCompression)
      oGdPictureImaging.ReleaseGdPictureImage(ImageID)
   Else
      MessageBox.Show("Error: This image is not 1 bit per pixel!")
   End If
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members