[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TCustomBitmap.Monochrome

True when the image contains monochrome image data.

Declaration

Source position: graphics.pp line 1437

public property TCustomBitmap.Monochrome : Boolean
  read GetMonochrome
  write SetMonochrome;

Description

Monochrome is a Boolean property which indicates whether the raw image data is represented using pixels of a single color.

The property value is True when the descriptor for the shared raw image data has a color depth of 1. The PixelFormat property will also contain the value pf1bit.

Setting a new value in Monochrome causes the value in PixelFormat to be changed. When set to True, PixelFormat is set to pf1bit. When set to False, the value pfDevice is assigned to the PixelFormat property.

Changing the value in Monochrome (and PixelFormat) causes the image data to be discarded, and the Handle for the internal shared image is freed.

No actions are performed when Monochrome is set to the existing value for the property.

See also

TRasterImage.PixelFormat

  

Storage format for the Pixels in the Image.

TCustomBitmap.Handle

  

The operating system Handle associated with this bitmap.


Version 3.2 Generated 2024-02-25 Home