GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / GetTiffCompression Method
GdPicture image identifier.
Example





In This Topic
GetTiffCompression Method (GdPictureImaging)
In This Topic
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
Deskewing a tiff image by analyzing angles in the range [-12; +12] degrees.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("skewed.tif");
 
    gdpictureImaging.AutoDeskew(imageID, 15, gdpictureImaging.ARGB(255, 255, 255, 255), 12, true);
 
    // Let's encode the new tiff with the same mode used by the input image.
    TiffCompression tiffCompression = gdpictureImaging.GetTiffCompression(imageID);
 
    gdpictureImaging.SaveAsTIFF(imageID, "deskewed.tif", tiffCompression);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also