TiffExtractPage(Int32,Int32,String) Method
In This Topic
This method allows you to directly extract a specified page from a multipage TIFF image, that is represented by its unique image identifier. The required page is easily extracted to a TIFF image file without the need to decode and re-encode the bitmap.
This method only handles multipage TIFF images, both editable or opened as read-only.
Be aware that when working with the multipage TIFF format using GdPicture images, the resulting image files created from individual pages are compressed in memory using the TIFF CCITT 4 compression when they are bitonal, otherwise they are compressed using the TIFF LZW compression.
Syntax
'Declaration
Public Overloads Function TiffExtractPage( _
ByVal As Integer, _
ByVal As Integer, _
ByVal As String _
) As GdPictureStatus
public GdPictureStatus TiffExtractPage(
int ,
int ,
string
)
public function TiffExtractPage(
: Integer;
: Integer;
: String
): GdPictureStatus;
public function TiffExtractPage(
: int,
: int,
: String
) : GdPictureStatus;
public: GdPictureStatus TiffExtractPage(
int ,
int ,
string*
)
public:
GdPictureStatus TiffExtractPage(
int ,
int ,
String^
)
Parameters
- ImageID
- A unique image identifier of the GdPicture image representing the multipage TIFF image.
- Page
- The page number of a page you want to extract. It must be a value from 1 to TiffGetPageCount.
- FilePath
- The file path where the TIFF image of the extracted page will be saved. If the specified file already exists, it will be overwritten.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.
See Also