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

Overview

Fields

Protected foptions: bitmapoptionsty;
Protected fmask: tbitmap;
Protected fmask_pos: pointty;

Methods

Protected procedure setkind(const avalue: bitmapkindty); override;
Protected function gettranspcolor(): colorty;
Protected function getasize: sizety; override;
Protected procedure createmask(const akind: bitmapkindty); virtual;
Protected function getconverttomonochromecolorbackground: colorty; override;
Protected procedure destroyhandle; override;
Protected procedure setsize(const Value: sizety); override;
Protected function writedata(const ancestor: tmaskedbitmap): boolean;
Protected procedure defineproperties(filer: tfiler); override;
Protected procedure objectevent(const sender: tobject; const event: objecteventty);
Protected function getmask(out apos: pointty): tsimplebitmap; override;
Protected function getsource: tbitmapcomp; override;
Protected procedure assign1(const source: tsimplebitmap; const docopy: boolean); override;
Protected procedure getcanvasimage(const bgr: boolean; var aimage: maskedimagety); override;
Protected procedure link(const source,dest: iobjectlink; valuepo: pointer = nil; ainterfacetype: pointer = nil; once: boolean = false);
Protected procedure unlink(const source,dest: iobjectlink; valuepo: pointer = nil);
Protected procedure objevent(const sender: iobjectlink; const event: objecteventty);
Protected function getinstance: tobject;
Protected function doloadfromstream(const atry: boolean; const stream: tstream; const format: string; const params: array of const): string;
Protected function doloadfromfile(const atry: boolean; const filename: filenamety; const format: string; const params: array of const): string;
Protected function doloadfromstring(const atry: boolean; const avalue: string; const format: string; const params: array of const): string;
Public constructor create(const akind: bitmapkindty; const agdifuncs: pgdifunctionaty = nil);
Public destructor destroy; override;
Public procedure clear; override;
Public procedure loadfrommaskedimage(const aimage: maskedimagety);
Public procedure savetomaskedimage(out aimage: maskedimagety);
Public function bitmap: tmaskedbitmap;
Public procedure releasehandle; override;
Public procedure acquirehandle; override;
Public procedure initmask;
Public procedure stretch(const dest: tmaskedbitmap; const aalignment: alignmentsty = [al_stretchx,al_stretchy,al_intpol]); overload;
Public procedure stretch(const source: rectty; const dest: tmaskedbitmap; const aalignment: alignmentsty = [al_stretchx,al_stretchy,al_intpol]); overload;
Public procedure remask;
Public procedure automask;
Public function loadfromstring(const avalue: string; const format: string; const params: array of const): string;
Public function loadfromstring(const avalue: string): string;
Public function loadfromstream(const stream: tstream; const format: string; const params: array of const): string;
Public function loadfromstream(const stream: tstream): string;
Public function loadfromfile(const filename: filenamety; const format: string; const params: array of const): string;
Public function loadfromfile(const filename: filenamety): string;
Public function tryloadfromstring(const avalue: string; const format: string; const params: array of const): string;
Public function tryloadfromstring(const avalue: string): string;
Public function tryloadfromstream(const stream: tstream; const format: string; const params: array of const): string;
Public function tryloadfromstream(const stream: tstream): string;
Public function tryloadfromfile(const filename: filenamety; const format: string; const params: array of const): string;
Public function tryloadfromfile(const filename: filenamety): string;
Public procedure writetostring(out avalue: string; const format: string; const params: array of const); overload;
Public function writetostring(const format: string; const params: array of const): string; overload;
Public procedure writetostream(const stream: tstream; const format: string; const params: array of const);
Public procedure writetofile(const filename: filenamety; const format: string; const params: array of const);

Properties

Public property mask: tbitmap read getmask1 write setmask;
Public property maskkind: bitmapkindty read getmaskkind write setmaskkind default bmk_mono;
Public property masked: boolean read getmasked write setmasked default false;
Public property graymask: boolean read getgraymask write setgraymask default false;
Public property colormask: boolean read getcolormask write setcolormask default false;
Public property maskcolorforeground: colorty read fmaskcolorforeground write fmaskcolorforeground default $ffffff;
Public property maskcolorbackground: colorty read fmaskcolorbackground write fmaskcolorbackground default $000000;
Public property mask_pos: pointty read fmask_pos write setmaskpos;
Public property origformatdata: string read forigformatdata write setorigformatdata;
Published property transparentcolor: colorty read ftransparentcolor write settransparentcolor default cl_default;
Published property options: bitmapoptionsty read getoptions write setoptions default [];
Published property source: tbitmapcomp read fsource write setsource;
Published property mask_source: tbitmapcomp read fmask_source write setmask_source;
Published property mask_x: int32 read fmask_pos.x write setmask_x default 0;
Published property mask_y: int32 read fmask_pos.y write setmask_y default 0;
Published property origformat: string read forigformat write forigformat;
Published property colorforeground;
Published property colorbackground;
Published property alignment;
Published property opacity;

Description

Fields

Protected foptions: bitmapoptionsty;
 
Protected fmask: tbitmap;
 
Protected fmask_pos: pointty;
 

Methods

Protected procedure setkind(const avalue: bitmapkindty); override;
 
Protected function gettranspcolor(): colorty;
 
Protected function getasize: sizety; override;
 
Protected procedure createmask(const akind: bitmapkindty); virtual;
 
Protected function getconverttomonochromecolorbackground: colorty; override;
 
Protected procedure destroyhandle; override;
 
Protected procedure setsize(const Value: sizety); override;
 
Protected function writedata(const ancestor: tmaskedbitmap): boolean;
 
Protected procedure defineproperties(filer: tfiler); override;
 
Protected procedure objectevent(const sender: tobject; const event: objecteventty);
 
Protected function getmask(out apos: pointty): tsimplebitmap; override;
 
Protected function getsource: tbitmapcomp; override;
 
Protected procedure assign1(const source: tsimplebitmap; const docopy: boolean); override;
 
Protected procedure getcanvasimage(const bgr: boolean; var aimage: maskedimagety); override;
 
Protected procedure link(const source,dest: iobjectlink; valuepo: pointer = nil; ainterfacetype: pointer = nil; once: boolean = false);
 
Protected procedure unlink(const source,dest: iobjectlink; valuepo: pointer = nil);
 
Protected procedure objevent(const sender: iobjectlink; const event: objecteventty);
 
Protected function getinstance: tobject;
 
Protected function doloadfromstream(const atry: boolean; const stream: tstream; const format: string; const params: array of const): string;
 
Protected function doloadfromfile(const atry: boolean; const filename: filenamety; const format: string; const params: array of const): string;
 
Protected function doloadfromstring(const atry: boolean; const avalue: string; const format: string; const params: array of const): string;
 
Public constructor create(const akind: bitmapkindty; const agdifuncs: pgdifunctionaty = nil);
 
Public destructor destroy; override;
 
Public procedure clear; override;
 
Public procedure loadfrommaskedimage(const aimage: maskedimagety);
 
Public procedure savetomaskedimage(out aimage: maskedimagety);
 
Public function bitmap: tmaskedbitmap;
 
Public procedure releasehandle; override;
 
Public procedure acquirehandle; override;
 
Public procedure initmask;
 
Public procedure stretch(const dest: tmaskedbitmap; const aalignment: alignmentsty = [al_stretchx,al_stretchy,al_intpol]); overload;
 
Public procedure stretch(const source: rectty; const dest: tmaskedbitmap; const aalignment: alignmentsty = [al_stretchx,al_stretchy,al_intpol]); overload;
 
Public procedure remask;
 
Public procedure automask;
 
Public function loadfromstring(const avalue: string; const format: string; const params: array of const): string;
 
Public function loadfromstring(const avalue: string): string;
 
Public function loadfromstream(const stream: tstream; const format: string; const params: array of const): string;
 
Public function loadfromstream(const stream: tstream): string;
 
Public function loadfromfile(const filename: filenamety; const format: string; const params: array of const): string;
 
Public function loadfromfile(const filename: filenamety): string;
 
Public function tryloadfromstring(const avalue: string; const format: string; const params: array of const): string;
 
Public function tryloadfromstring(const avalue: string): string;
 
Public function tryloadfromstream(const stream: tstream; const format: string; const params: array of const): string;
 
Public function tryloadfromstream(const stream: tstream): string;
 
Public function tryloadfromfile(const filename: filenamety; const format: string; const params: array of const): string;
 
Public function tryloadfromfile(const filename: filenamety): string;
 
Public procedure writetostring(out avalue: string; const format: string; const params: array of const); overload;
 
Public function writetostring(const format: string; const params: array of const): string; overload;
 
Public procedure writetostream(const stream: tstream; const format: string; const params: array of const);
 
Public procedure writetofile(const filename: filenamety; const format: string; const params: array of const);
 

Properties

Public property mask: tbitmap read getmask1 write setmask;
 
Public property maskkind: bitmapkindty read getmaskkind write setmaskkind default bmk_mono;
 
Public property masked: boolean read getmasked write setmasked default false;
 
Public property graymask: boolean read getgraymask write setgraymask default false;
 
Public property colormask: boolean read getcolormask write setcolormask default false;
 
Public property maskcolorforeground: colorty read fmaskcolorforeground write fmaskcolorforeground default $ffffff;
 
Public property maskcolorbackground: colorty read fmaskcolorbackground write fmaskcolorbackground default $000000;
 
Public property mask_pos: pointty read fmask_pos write setmaskpos;
 
Public property origformatdata: string read forigformatdata write setorigformatdata;
 
Published property transparentcolor: colorty read ftransparentcolor write settransparentcolor default cl_default;
 
Published property options: bitmapoptionsty read getoptions write setoptions default [];
 
Published property source: tbitmapcomp read fsource write setsource;
 
Published property mask_source: tbitmapcomp read fmask_source write setmask_source;
 
Published property mask_x: int32 read fmask_pos.x write setmask_x default 0;
 
Published property mask_y: int32 read fmask_pos.y write setmask_y default 0;
 
Published property origformat: string read forigformat write forigformat;
 
Published property colorforeground;
 
Published property colorbackground;
 
Published property alignment;
 
Published property opacity;
 

Generated by PasDoc 0.16.0.