Class tmaskedbitmap
Unit
Declaration
type tmaskedbitmap = class(tbitmap, iobjectlink)
Description
No description available, ancestor tbitmap description follows
No description available, ancestor tsimplebitmap description follows
No description available, ancestor tnullinterfacedpersistent description follows
No description available, ancestor tvirtualpersistent description follows
Hierarchy
- TObject
- tpersistent
- tvirtualpersistent
- tnullinterfacedpersistent
- tsimplebitmap
- tbitmap
- tmaskedbitmap
Overview
Fields
foptions: bitmapoptionsty; |
|
fmask: tbitmap; |
|
fmask_pos: pointty; |
Methods
procedure setkind(const avalue: bitmapkindty); override; |
|
function gettranspcolor(): colorty; |
|
function getasize: sizety; override; |
|
procedure createmask(const akind: bitmapkindty); virtual; |
|
function getconverttomonochromecolorbackground: colorty; override; |
|
procedure destroyhandle; override; |
|
procedure setsize(const Value: sizety); override; |
|
function writedata(const ancestor: tmaskedbitmap): boolean; |
|
procedure defineproperties(filer: tfiler); override; |
|
procedure objectevent(const sender: tobject; const event: objecteventty); |
|
function getmask(out apos: pointty): tsimplebitmap; override; |
|
function getsource: tbitmapcomp; override; |
|
procedure assign1(const source: tsimplebitmap; const docopy: boolean); override; |
|
procedure getcanvasimage(const bgr: boolean; var aimage: maskedimagety); override; |
|
procedure link(const source,dest: iobjectlink; valuepo: pointer = nil; ainterfacetype: pointer = nil; once: boolean = false); |
|
procedure unlink(const source,dest: iobjectlink; valuepo: pointer = nil); |
|
procedure objevent(const sender: iobjectlink; const event: objecteventty); |
|
function getinstance: tobject; |
|
function doloadfromstream(const atry: boolean; const stream: tstream; const format: string; const params: array of const): string; |
|
function doloadfromfile(const atry: boolean; const filename: filenamety; const format: string; const params: array of const): string; |
|
function doloadfromstring(const atry: boolean; const avalue: string; const format: string; const params: array of const): string; |
|
constructor create(const akind: bitmapkindty; const agdifuncs: pgdifunctionaty = nil); |
|
destructor destroy; override; |
|
procedure clear; override; |
|
procedure loadfrommaskedimage(const aimage: maskedimagety); |
|
procedure savetomaskedimage(out aimage: maskedimagety); |
|
function bitmap: tmaskedbitmap; |
|
procedure releasehandle; override; |
|
procedure acquirehandle; override; |
|
procedure initmask; |
|
procedure stretch(const dest: tmaskedbitmap; const aalignment: alignmentsty = [al_stretchx,al_stretchy,al_intpol]); overload; |
|
procedure stretch(const source: rectty; const dest: tmaskedbitmap; const aalignment: alignmentsty = [al_stretchx,al_stretchy,al_intpol]); overload; |
|
procedure remask; |
|
procedure automask; |
|
function loadfromstring(const avalue: string; const format: string; const params: array of const): string; |
|
function loadfromstring(const avalue: string): string; |
|
function loadfromstream(const stream: tstream; const format: string; const params: array of const): string; |
|
function loadfromstream(const stream: tstream): string; |
|
function loadfromfile(const filename: filenamety; const format: string; const params: array of const): string; |
|
function loadfromfile(const filename: filenamety): string; |
|
function tryloadfromstring(const avalue: string; const format: string; const params: array of const): string; |
|
function tryloadfromstring(const avalue: string): string; |
|
function tryloadfromstream(const stream: tstream; const format: string; const params: array of const): string; |
|
function tryloadfromstream(const stream: tstream): string; |
|
function tryloadfromfile(const filename: filenamety; const format: string; const params: array of const): string; |
|
function tryloadfromfile(const filename: filenamety): string; |
|
procedure writetostring(out avalue: string; const format: string; const params: array of const); overload; |
|
function writetostring(const format: string; const params: array of const): string; overload; |
|
procedure writetostream(const stream: tstream; const format: string; const params: array of const); |
|
procedure writetofile(const filename: filenamety; const format: string; const params: array of const); |
Properties
property mask: tbitmap read getmask1 write setmask; |
|
property maskkind: bitmapkindty read getmaskkind
write setmaskkind default bmk_mono; |
|
property masked: boolean read getmasked write setmasked default false; |
|
property graymask: boolean read getgraymask write setgraymask default false; |
|
property colormask: boolean read getcolormask write setcolormask default false; |
|
property maskcolorforeground: colorty read fmaskcolorforeground
write fmaskcolorforeground default $ffffff; |
|
property maskcolorbackground: colorty read fmaskcolorbackground
write fmaskcolorbackground default $000000; |
|
property mask_pos: pointty read fmask_pos write setmaskpos; |
|
property origformatdata: string read forigformatdata write setorigformatdata; |
|
property transparentcolor: colorty read ftransparentcolor
write settransparentcolor default cl_default; |
|
property options: bitmapoptionsty read getoptions write setoptions default []; |
|
property source: tbitmapcomp read fsource write setsource; |
|
property mask_source: tbitmapcomp read fmask_source write setmask_source; |
|
property mask_x: int32 read fmask_pos.x write setmask_x default 0; |
|
property mask_y: int32 read fmask_pos.y write setmask_y default 0; |
|
property origformat: string read forigformat write forigformat; |
|
property colorforeground; |
|
property colorbackground; |
|
property alignment; |
|
property opacity; |
Description
Fields
foptions: bitmapoptionsty; |
|
fmask: tbitmap; |
|
fmask_pos: pointty; |
|
Methods
procedure setkind(const avalue: bitmapkindty); override; |
|
function gettranspcolor(): colorty; |
|
function getasize: sizety; override; |
|
procedure createmask(const akind: bitmapkindty); virtual; |
|
function getconverttomonochromecolorbackground: colorty; override; |
|
procedure destroyhandle; override; |
|
procedure setsize(const Value: sizety); override; |
|
function writedata(const ancestor: tmaskedbitmap): boolean; |
|
procedure defineproperties(filer: tfiler); override; |
|
procedure objectevent(const sender: tobject; const event: objecteventty); |
|
function getmask(out apos: pointty): tsimplebitmap; override; |
|
function getsource: tbitmapcomp; override; |
|
procedure assign1(const source: tsimplebitmap; const docopy: boolean); override; |
|
procedure getcanvasimage(const bgr: boolean; var aimage: maskedimagety); override; |
|
procedure link(const source,dest: iobjectlink; valuepo: pointer = nil; ainterfacetype: pointer = nil; once: boolean = false); |
|
procedure unlink(const source,dest: iobjectlink; valuepo: pointer = nil); |
|
procedure objevent(const sender: iobjectlink; const event: objecteventty); |
|
function getinstance: tobject; |
|
function doloadfromstream(const atry: boolean; const stream: tstream; const format: string; const params: array of const): string; |
|
function doloadfromfile(const atry: boolean; const filename: filenamety; const format: string; const params: array of const): string; |
|
function doloadfromstring(const atry: boolean; const avalue: string; const format: string; const params: array of const): string; |
|
constructor create(const akind: bitmapkindty; const agdifuncs: pgdifunctionaty = nil); |
|
destructor destroy; override; |
|
procedure clear; override; |
|
procedure loadfrommaskedimage(const aimage: maskedimagety); |
|
procedure savetomaskedimage(out aimage: maskedimagety); |
|
function bitmap: tmaskedbitmap; |
|
procedure releasehandle; override; |
|
procedure acquirehandle; override; |
|
procedure initmask; |
|
procedure stretch(const dest: tmaskedbitmap; const aalignment: alignmentsty = [al_stretchx,al_stretchy,al_intpol]); overload; |
|
procedure stretch(const source: rectty; const dest: tmaskedbitmap; const aalignment: alignmentsty = [al_stretchx,al_stretchy,al_intpol]); overload; |
|
procedure remask; |
|
procedure automask; |
|
function loadfromstring(const avalue: string; const format: string; const params: array of const): string; |
|
function loadfromstring(const avalue: string): string; |
|
function loadfromstream(const stream: tstream; const format: string; const params: array of const): string; |
|
function loadfromstream(const stream: tstream): string; |
|
function loadfromfile(const filename: filenamety; const format: string; const params: array of const): string; |
|
function loadfromfile(const filename: filenamety): string; |
|
function tryloadfromstring(const avalue: string; const format: string; const params: array of const): string; |
|
function tryloadfromstring(const avalue: string): string; |
|
function tryloadfromstream(const stream: tstream; const format: string; const params: array of const): string; |
|
function tryloadfromstream(const stream: tstream): string; |
|
function tryloadfromfile(const filename: filenamety; const format: string; const params: array of const): string; |
|
function tryloadfromfile(const filename: filenamety): string; |
|
procedure writetostring(out avalue: string; const format: string; const params: array of const); overload; |
|
function writetostring(const format: string; const params: array of const): string; overload; |
|
procedure writetostream(const stream: tstream; const format: string; const params: array of const); |
|
procedure writetofile(const filename: filenamety; const format: string; const params: array of const); |
|
Properties
property mask: tbitmap read getmask1 write setmask; |
|
property maskkind: bitmapkindty read getmaskkind
write setmaskkind default bmk_mono; |
|
property masked: boolean read getmasked write setmasked default false; |
|
property graymask: boolean read getgraymask write setgraymask default false; |
|
property colormask: boolean read getcolormask write setcolormask default false; |
|
property maskcolorforeground: colorty read fmaskcolorforeground
write fmaskcolorforeground default $ffffff; |
|
property maskcolorbackground: colorty read fmaskcolorbackground
write fmaskcolorbackground default $000000; |
|
property mask_pos: pointty read fmask_pos write setmaskpos; |
|
property origformatdata: string read forigformatdata write setorigformatdata; |
|
property transparentcolor: colorty read ftransparentcolor
write settransparentcolor default cl_default; |
|
property options: bitmapoptionsty read getoptions write setoptions default []; |
|
property source: tbitmapcomp read fsource write setsource; |
|
property mask_source: tbitmapcomp read fmask_source write setmask_source; |
|
property mask_x: int32 read fmask_pos.x write setmask_x default 0; |
|
property mask_y: int32 read fmask_pos.y write setmask_y default 0; |
|
property origformat: string read forigformat write forigformat; |
|
property colorforeground; |
|
property colorbackground; |
|
property alignment; |
|
property opacity; |
|
Generated by PasDoc 0.16.0.