The IJPEG interface is designed to configure output files to be saved in the JPEG format.


Enum ColorSpace

Defines the bit depth of the resulting image measured as the number of bits representing each pixel. It is both readable and writable.
CS_256GRAYSCALE136Grayscale image (256 hues, 8 bits per pixel)
CS_TRUECOLOR24True color image (24 bits per pixel)

Enum Mode
Defines the type of JPEG used to create output files. It is both readable and writable.
JPG_PROGRESSIVE1A progressive-scan file which creates the image as a series of interlaced images. This functionality shows lower-resolution representations of an image while it is still loading (useful for the Internet).
JPG_BASELINE0A standard-scan file

Integer Quality
Defines the quality of the output file (as a percentage value). The greater the value in this property, the higher the image quality and the larger the resulting file will be. Valid range: between 0 and 100. It is both readable and writable.


Visual Basic 6

Dim objUDC As IUDC Dim itfPrinter As IUDCPrinter Dim itfProfile As IProfile Set objUDC = New UDC.APIWrapper Set itfPrinter = objUDC.Printers("Universal Document Converter") Set itfProfile = itfPrinter.Profile ' Set JPEG as current output file format itfProfile.FileFormat.ActualFormat = FMT_JPEG itfProfile.FileFormat.JPEG.ColorSpace = CS_TRUECOLOR itfProfile.FileFormat.JPEG.Mode = JPG_PROGRESSIVE itfProfile.FileFormat.JPEG.Quality = 75