SaveAsTIFFjpgEx Method

See Also     Examples     Applies To

Saves the native GdPicture image as Tagged Image File Format with jpeg compression.
This functions takes a jpeg quality value as parameter.

Syntax

object.SaveAsTIFFjpgEx (sFilePath, nQuality)

The SaveAsTIFFjpgEx syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
sFilePath Required. String. The complete file path to save the native GdPicture image.
nQuality Required. Long. Defines the compression quality between 1 and 100.

Returns

Long. GdPictureStatus

Remarks

This function works only with 8-bits grayscale, and 24-bits images.
WARNING: You need to redistribute the optional gdimgplug.dll library in order to be able to use this function.

Category

Save and Close Image

Visual Basic Sample

How to convert BMP file to TIFF win jpeg compression image format.


Dim nImageID As Long

nImageID = object.CreateImageFromFile("image.bmp")
If nImageID <> 0 Then
   object.SaveAsTIFFjpgEx ("image.tiff", 100)
   object.CloseImage (nImageID)
End If






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.