Abakus VCL: Table of Contents
Abakus VCL: Table of Contents
Abakus VCL: Table of Contents
Mask Components
AbakusMaskcontrolsareasetwiththeopportunitytochangetheshapeofthecontrolby
meansofcolorareasofabitmap.
Tableofcontents
Componenthierarchy
Components
TAbCustomBmpMask
TAbBmpMask
TAbCustomBmpMaskCanvas
TAbBmpMaskCanvas
TAbCustomBmpMaskMeter
TAbBmpMaskMeter
Component hierarchy
Components
TAbCustomBmpMask
ThisistheparentofourbitmapMaskcontrols.Thiscontrolisnotvisibleinthecomponent
toolbar.
Method description
procedureChange Callthistoupdatethedynamicpartofthecomponent.
TAbBmpMask
DerivedfromTAbCustomBmpMask
TAbCustomBmpMaskCanvas
DerivedfromTAbCustomBmpMask
TOnChangeEvent=Procedure(can:TCanvas)ofObject
ThecomponentcreatesarectanglearoundallpixelincolorColorCanvas,abitmapwith
thedimensionofthisrectangleiscreatedandisusedforadoublebufferedgraphictoavoid
flickering.
Youcangetthewidth/heightofthecanvasbymeansoftheClipRect(can.ClipRect).
Example:
procedure TForm1.AbBMaskCanvas1Change(can:TCanvas)
var
w,h:Integer
begin
//getthewidthandheight
w:=can.ClipRect.Right
h:=can.ClipRect.Bottom
//fillthetotalareainclLime
can.Brush.Style:=bsSolid
can.Brush.Color:=clLime
can.Pen.Color:=clLime
can.Pen.Style:=psSolid
can.Rectangle(Rect(0,0,w,h))
//orcallcan.Rectangle(can.ClipRect)
end
TAbBmpMaskCanvas
DerivedfromTAbCustomBmpMask
AbCustomBmpMaskMeter
DerivedfromTAbCustomBmpMaskCanvas
ApublicpropertyPPHcontainsthecurrentValueinPartsPerHundred(%).
TAbBmpMaskMeter
DerivedfromTAbCustomBmpMaskMeter