GraphicsFormats Xojo plugin |
|
RawJpegExporter Class (console safe)
A class to Export Pictures to a Jpeg format. The result can be written to a File, string or IBinaryStreamWriter.
This class uses RawBitmap that is defined in TypeLib instead of Xojo Pictures. RawBitmap can be used in console applications.
This class will also include ICC Color Profile if the RawBitmap had ICC Color profile on it.
Object
RawJpegExporter
class RawJpegExporter implements
IRawBitmapWriter
Properties
Baseline | Forces baseline in the quality setting. |
Grayscale | To compress to a Grayscale color space. |
LastError | Error code for last method called. |
ProgressHandler | To get progress feedback then assign a a class instance that implements the IProgressHandler interface to this property. |
Progressive | To set a progressive compression. |
Quality | Quality is to define the quality level. |
SmoothingFactor | Smoothing factor is to add smoothing to the image when it gets compressed. |
Methods
GetLastErrorCode | Same as the LastError property but this one returns it as Integer to full-fill the standard interface. |
SaveToFile | Exports a RawBitmap picture to a Jpeg file. |
SaveToString | Exports a picture formatted as Jpeg to a String. |
Constants
Version = 7.5 | |
Supported Platforms:
MacOS X Cocoa 32 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARM