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

TCustomBitmap

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCustomBitMap - the base class for TBitmap

Declaration

Source position: graphics.pp line 1251

type TCustomBitmap = class(TRasterImage)

protected

  procedure MaskHandleNeeded; override;

  

  procedure PaletteNeeded; override;

  

  function CanShareImage(); override;

  

  procedure Changed(); override;

  

  function CreateDefaultBitmapHandle(); override;

  

  procedure FreeMaskHandle;

  function GetBitmapHandle; override;

  

  function GetMaskHandle; override;

  

  function GetPalette; override;

  

  function GetPixelFormat; override;

  

  function GetRawImagePtr; override;

  function GetRawImageDescriptionPtr; override;

  procedure HandleNeeded; override;

  

  function InternalReleaseBitmapHandle; override;

  

  function InternalReleaseMaskHandle; override;

  

  function InternalReleasePalette; override;

  

  procedure RawimageNeeded();

  

  procedure SetHandle(); override;

  

  procedure SetPixelFormat(); override;

  

  procedure UnshareImage(); override;

  

  function UpdateHandles(); override;

  

public

  constructor Create; override;

  

BitMap constructor

  destructor Destroy; override;

  

BitMap destructor

  procedure Clear; override;

  function GetResourceType; override;

  

Finds the type of resource for the bitmap

  function LazarusResourceTypeValid(); override;

  

Checks that the Resource Type specified in the string argument is a valid Lazarus type

  function BitmapHandleAllocated; override;

  

  function MaskHandleAllocated; override;

  

Is a handle allocated for the bitmap mask?

  function PaletteAllocated; override;

  

Has a colour palette been allocated for this bitmap?

  function ReleaseHandle;

  

Release the bitmap handle, effectively freeing resources

  procedure SetHandles(); override;

  

Sets handles for the bitmap and its mask

  procedure SetSize(); override;

  

  property Handle: HBITMAP; [rw]

  

The operating system Handle ssociated with this bitmap

  property HandleType: TBitmapHandleType; [rw]

  

The type of system handle

  property Monochrome: Boolean; [rw]

  

Whether using monochrome display

end;

Inheritance

TCustomBitmap

  

TCustomBitMap - the base class for TBitmap

|

TRasterImage

  

TRasterImage - base class for a number of graphic controls, including TCustomBitmap and TCustomIcon, which use a raster of dots to display graphic information

|

TGraphic

  

Base class for dealing with Graphic images

|

TPersistent

|

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.