Class TBGRALCLBitmap

Unit

Declaration

type TBGRALCLBitmap = class(TBGRADefaultBitmap)

Description

Implementation of 32-RGBA bitmap based on LCL (Lazarus Component Library)

Hierarchy

Overview

Methods

Public function MakeBitmapCopy(BackgroundColor: TColor; AMasked: boolean = False): TBitmap; override;
Protected function CreateDefaultFontRenderer: TBGRACustomFontRenderer; override;
Protected function CreatePtrBitmap(AWidth, AHeight: integer; AData: PBGRAPixel): TBGRAPtrBitmap; override;
Protected function LoadFromRawImage(ARawImage: TRawImage; DefaultOpacity: byte; AlwaysReplaceAlpha: boolean = False; RaiseErrorOnInvalidPixelFormat: boolean = True): boolean; override;
Public procedure Assign(Source: TPersistent; ACopyProperties: Boolean); overload; override;
Public procedure Assign(Source: TPersistent); override;
Public procedure AssignToBitmap(ADestination: TBitmap);
Public procedure DataDrawOpaque(ACanvas: TCanvas; ARect: TRect; AData: Pointer; ALineOrder: TRawImageLineOrder; AWidth, AHeight: integer); override;
Public procedure DataDrawTransparent(ACanvas: TCanvas; Rect: TRect; AData: Pointer; ALineOrder: TRawImageLineOrder; AWidth, AHeight: integer); override;
Public procedure GetImageFromCanvas(CanvasSource: TCanvas; x, y: integer); override;
Public procedure LoadFromDevice(DC: HDC); override;
Public procedure LoadFromDevice(DC: HDC; ARect: TRect); override;
Public procedure LoadFromResource(AFilename: string; AOptions: TBGRALoadingOptions); overload; override;
Public procedure TakeScreenshot(ARect: TRect); override;
Public procedure TakeScreenshotOfPrimaryMonitor; override;
Protected procedure AssignRasterImage(ARaster: TRasterImage); virtual;
Protected procedure DoLoadFromBitmap; override;
Protected procedure ExtractXorMask;
Protected procedure RebuildBitmap; override;

Description

Methods

Public function MakeBitmapCopy(BackgroundColor: TColor; AMasked: boolean = False): TBitmap; override;

This item has no description.

Protected function CreateDefaultFontRenderer: TBGRACustomFontRenderer; override;

This item has no description.

Protected function CreatePtrBitmap(AWidth, AHeight: integer; AData: PBGRAPixel): TBGRAPtrBitmap; override;

This item has no description.

Protected function LoadFromRawImage(ARawImage: TRawImage; DefaultOpacity: byte; AlwaysReplaceAlpha: boolean = False; RaiseErrorOnInvalidPixelFormat: boolean = True): boolean; override;

This item has no description. Showing description inherited from TBGRADefaultBitmap.LoadFromRawImage.

Pixel data

Public procedure Assign(Source: TPersistent; ACopyProperties: Boolean); overload; override;

This item has no description.

Public procedure Assign(Source: TPersistent); override;

This item has no description. Showing description inherited from TBGRADefaultBitmap.Assign.

Assign the content of the specified ''Source''. It can be a ''TBGRACustomBitmap'' or a ''TFPCustomImage''

Public procedure AssignToBitmap(ADestination: TBitmap);

Assign image to a TBitmap

Public procedure DataDrawOpaque(ACanvas: TCanvas; ARect: TRect; AData: Pointer; ALineOrder: TRawImageLineOrder; AWidth, AHeight: integer); override;

This item has no description.

Public procedure DataDrawTransparent(ACanvas: TCanvas; Rect: TRect; AData: Pointer; ALineOrder: TRawImageLineOrder; AWidth, AHeight: integer); override;

This item has no description. Showing description inherited from TBGRACustomBitmap.DataDrawTransparent.

Canvas drawing functions

Public procedure GetImageFromCanvas(CanvasSource: TCanvas; x, y: integer); override;

This item has no description.

Public procedure LoadFromDevice(DC: HDC); override;

This item has no description. Showing description inherited from TBGRACustomBitmap.LoadFromDevice.

Gets the content of the specified device context

Public procedure LoadFromDevice(DC: HDC; ARect: TRect); override;

This item has no description. Showing description inherited from TBGRACustomBitmap.LoadFromDevice.

Gets the content from the specified rectangular area of a device context

Public procedure LoadFromResource(AFilename: string; AOptions: TBGRALoadingOptions); overload; override;

This item has no description.

Public procedure TakeScreenshot(ARect: TRect); override;

This item has no description. Showing description inherited from TBGRACustomBitmap.TakeScreenshot.

Fills the content with a screenshot of the specified rectangular area of the desktop (it can be from any screen)

Public procedure TakeScreenshotOfPrimaryMonitor; override;

This item has no description. Showing description inherited from TBGRACustomBitmap.TakeScreenshotOfPrimaryMonitor.

Fills the content with a screenshot of the primary monitor

Protected procedure AssignRasterImage(ARaster: TRasterImage); virtual;

This item has no description.

Protected procedure DoLoadFromBitmap; override;

This item has no description.

Protected procedure ExtractXorMask;

Determines the Xor mask from the alpha values of the bitmap

Protected procedure RebuildBitmap; override;

This item has no description.