Sign in Join
FPDoc Onlineexperiment

TJPEGImage class

In unit Graphics

TJPEGImage - a class for handling images stored in JPEG (compressed) format.

Declaration

pascal
TJPEGImage = class(TFPImageBitmap)

Inheritance

  1. TJPEGImage
  2. TFPImageBitmap
  3. TCustomBitmap
  4. TRasterImage
  5. TGraphic
  6. TPersistent

Description

TJPEGImage is a TFPImageBitmap descendant which implements support for the JPEG ( Joint Photographic Experts Group) image format. JPEG images are commonly used for storing digital photographs. They can represent detailed color photos using a high degree of compression, resulting in very efficient storage, though with some loss of quality.

JPEG image files normally have a file extension like: jpeg, jpg, jpe, or jfif.

The CompressionQuality and Performance properties can be used to set the balance between storage efficiency and picture quality. CompressionQuality is an Integer value between 1 and 100, with 100 representing the best quality. Performance is an enumerated variable with two states: BestQuality or BestSpeed (for compression).

See also

Properties

CompressionQualitypublicDetermine the compression quality for the image data.
GrayScalepublicIndicates if the image contains grayscale image data.
MinHeightpublicMinimum height allowed for the image when read using an FCL image reader.
MinWidthpublicMinimum width allowed for the image when read using an FCL image reader.
ProgressiveEncodingpublicIndicates if progressive encoding is used for the image data.
PerformancepublicSet for best quality or best speed.
ScalepublicA predefined scaling value applied to the image data.
SmoothingpublicIndicates if smoothing is applied to the raw image data.

Methods

InitializeReaderprotectedInitializes the FCL-compatible image reader for the image type.
InitializeWriterprotectedInitializes the FCL-compatible Image Writer for the image type.
FinalizeReaderprotectedFinalizes the FCL Image reader.
GetReaderClassprotectedGets the class reference used to create new instances of the FCL-compatible image reader.
GetWriterClassprotectedGets the class reference used to create new instances of the FCL-compatible image writer.
GetSharedImageClassprotectedGets the class reference used to create new shared image instances in the class.
CreatepublicConstructor for the class instance.
CompresspublicApplies compression settings in the class instance to the image data.
IsStreamFormatSupportedpublicIndicates if the stream contains a format supported for the image type.
GetFileExtensionspublicGets the file extension(s) supported for the image format.

Inherited

From TFPImageBitmap (6)

FinalizeWriter GetMimeType IsFileExtensionSupported LazarusResourceTypeValid ReadStream WriteStream

From TCustomBitmap (34)

Assign BitmapHandleAllocated CanShareImage Changed Clear CreateDefaultBitmapHandle Destroy FreeImage FreeMaskHandle GetBitmapHandle GetMaskHandle GetPalette GetPixelFormat GetRawImageDescriptionPtr GetRawImagePtr Handle HandleNeeded HandleType InternalReleaseBitmapHandle InternalReleaseMaskHandle InternalReleasePalette MaskHandleAllocated MaskHandleNeeded Monochrome PaletteAllocated PaletteNeeded RawimageNeeded ReleaseHandle SetHandle SetHandles SetPixelFormat SetSize UnshareImage UpdateHandles

From TRasterImage (47)

ApplyTransparent BeginUpdate BitmapHandle BitmapHandleNeeded Canvas CreateIntfImage Draw EndUpdate FreeSaveStream GetEmpty GetHandle GetHeight GetMasked GetSize GetSupportedSourceMimeTypes GetTransparent GetWidth HandleAllocated LoadFromBitmapHandles LoadFromDevice LoadFromIntfImage LoadFromMimeStream LoadFromRawImage LoadFromStream Mask Masked MaskHandle PixelFormat RawImage ReadData ReleaseBitmapHandle ReleaseMaskHandle ReleasePalette RequestTransparentColor SaveStreamNeeded SaveToStream ScanLine SetBitmapHandle SetHeight SetMasked SetMaskHandle SetTransparent SetTransparentMode SetWidth TransparentColor TransparentMode WriteData

From TGraphic (25)

DefineProperties Empty Equals GetResourceType Height LoadFromClipboardFormat LoadFromClipboardFormatID LoadFromFile LoadFromLazarusResource LoadFromResourceID LoadFromResourceName MimeType Modified OnChange OnProgress Palette PaletteModified Progress SaveToClipboardFormat SaveToClipboardFormatID SaveToFile SetModified SetPalette Transparent Width

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.