Class tsimplebitmap

Unit

Declaration

type tsimplebitmap = class(tnullinterfacedpersistent, icanvas)

Description

No description available, ancestor tnullinterfacedpersistent description follows
No description available, ancestor tvirtualpersistent description follows

Hierarchy

Overview

Fields

Protected fgdifuncs: pgdifunctionaty;
Protected fcanvasclass: canvasclassty;
Protected fcanvas: tcanvas;
Protected fhandle: pixmapty;
Protected fsize: sizety;
Protected fscanlinestep: integer;
Protected fscanlinewords: integer;
Protected fscanhigh: integer;
Protected fkind: bitmapkindty;
Protected fstate: pixmapstatesty;
Protected fcolorbackground: colorty;
Protected fcolorforeground: colorty;
Protected fdefaultcliporigin: pointty;

Methods

Protected procedure updatescanline();
Protected function createcanvas: tcanvas; virtual;
Protected procedure creategc;
Protected procedure internaldestroyhandle;
Protected procedure destroyhandle; virtual;
Protected procedure createhandle(acopyfrom: pixmapty); virtual;
Protected procedure setkind(const avalue: bitmapkindty); virtual;
Protected function getconverttomonochromecolorbackground: colorty; virtual;
Protected function getmask(out apos: pointty): tsimplebitmap; virtual;
Protected procedure setsize(const avalue: sizety); virtual;
Protected function normalizeinitcolor(const acolor: colorty): colorty;
Protected procedure assign1(const source: tsimplebitmap; const docopy: boolean); virtual;
Protected function getgdiintf: pgdifunctionaty;
Protected procedure gcneeded(const sender: tcanvas);
Protected function getsize: sizety;
Protected function getkind: bitmapkindty;
Protected procedure getcanvasimage(const bgr: boolean; var aimage: maskedimagety); virtual;
Public constructor create(const akind: bitmapkindty; const agdifuncs: pgdifunctionaty = nil); reintroduce;
Public destructor destroy; override;
Public procedure copyhandle;
Public procedure releasehandle; virtual;
Public procedure acquirehandle; virtual;
Public procedure assign(source: tpersistent); override;
Public procedure assignnegative(source: tsimplebitmap);
Public procedure clear; virtual;
Public procedure init(const acolor: colorty); virtual;
Public procedure freecanvas;
Public function canvasallocated: boolean;
Public procedure copyarea(const asource: tsimplebitmap; const asourcerect: rectty; const adestpoint: pointty; const acopymode: rasteropty = rop_copy; const masked: boolean = true; const acolorforeground: colorty = cl_default; const acolorbackground: colorty = cl_default; const aopacity: colorty = cl_none); overload;
Public procedure copyarea(const asource: tsimplebitmap; const asourcerect: rectty; const adestrect: rectty; const aalignment: alignmentsty = []; const acopymode: rasteropty = rop_copy; const masked: boolean = true; const acolorforeground: colorty = cl_default; const acolorbackground: colorty = cl_default; const aopacity: colorty = cl_none); overload;
Public function isempty: boolean;

Properties

Public property handle: pixmapty read gethandle write sethandle;
Public property kind: bitmapkindty read fkind write setkind;
Public property canvas: tcanvas read getcanvas;
Public property size: sizety read fsize write setsize;
Public property width: integer read fsize.cx write setwidth;
Public property height: integer read fsize.cy write setheight;

Description

Fields

Protected fgdifuncs: pgdifunctionaty;
 
Protected fcanvasclass: canvasclassty;
 
Protected fcanvas: tcanvas;
 
Protected fhandle: pixmapty;
 
Protected fsize: sizety;
 
Protected fscanlinestep: integer;
 
Protected fscanlinewords: integer;
 
Protected fscanhigh: integer;
 
Protected fkind: bitmapkindty;
 
Protected fstate: pixmapstatesty;
 
Protected fcolorbackground: colorty;
 
Protected fcolorforeground: colorty;
 
Protected fdefaultcliporigin: pointty;
 

Methods

Protected procedure updatescanline();
 
Protected function createcanvas: tcanvas; virtual;
 
Protected procedure creategc;
 
Protected procedure internaldestroyhandle;
 
Protected procedure destroyhandle; virtual;
 
Protected procedure createhandle(acopyfrom: pixmapty); virtual;
 
Protected procedure setkind(const avalue: bitmapkindty); virtual;
 
Protected function getconverttomonochromecolorbackground: colorty; virtual;
 
Protected function getmask(out apos: pointty): tsimplebitmap; virtual;
 
Protected procedure setsize(const avalue: sizety); virtual;
 
Protected function normalizeinitcolor(const acolor: colorty): colorty;
 
Protected procedure assign1(const source: tsimplebitmap; const docopy: boolean); virtual;
 
Protected function getgdiintf: pgdifunctionaty;
 
Protected procedure gcneeded(const sender: tcanvas);
 
Protected function getsize: sizety;
 
Protected function getkind: bitmapkindty;
 
Protected procedure getcanvasimage(const bgr: boolean; var aimage: maskedimagety); virtual;
 
Public constructor create(const akind: bitmapkindty; const agdifuncs: pgdifunctionaty = nil); reintroduce;
 
Public destructor destroy; override;
 
Public procedure copyhandle;
 
Public procedure releasehandle; virtual;
 
Public procedure acquirehandle; virtual;
 
Public procedure assign(source: tpersistent); override;
 
Public procedure assignnegative(source: tsimplebitmap);
 
Public procedure clear; virtual;
 
Public procedure init(const acolor: colorty); virtual;
 
Public procedure freecanvas;
 
Public function canvasallocated: boolean;
 
Public procedure copyarea(const asource: tsimplebitmap; const asourcerect: rectty; const adestpoint: pointty; const acopymode: rasteropty = rop_copy; const masked: boolean = true; const acolorforeground: colorty = cl_default; const acolorbackground: colorty = cl_default; const aopacity: colorty = cl_none); overload;
 
Public procedure copyarea(const asource: tsimplebitmap; const asourcerect: rectty; const adestrect: rectty; const aalignment: alignmentsty = []; const acopymode: rasteropty = rop_copy; const masked: boolean = true; const acolorforeground: colorty = cl_default; const acolorbackground: colorty = cl_default; const aopacity: colorty = cl_none); overload;
 
Public function isempty: boolean;
 

Properties

Public property handle: pixmapty read gethandle write sethandle;
 
Public property kind: bitmapkindty read fkind write setkind;
 
Public property canvas: tcanvas read getcanvas;
 
Public property size: sizety read fsize write setsize;
 
Public property width: integer read fsize.cx write setwidth;
 
Public property height: integer read fsize.cy write setheight;
 

Generated by PasDoc 0.16.0.