TDirect2DShape
is a simply TShape
implementation using TDirect2DCanvas
to paint instead GDI TCanvas
.
[Optional]
Boss instalation:
boss install github.com/willisnou/Direct2DShape
[Manual]
For manual installation add the ../Direct2DShape/src
directory on library path in Tools > Options > Language > Delphi > Library > Library Path AND install the component package to use in design time.
Just drop (at design time) the TDirect2DShape on the form and configure it. To create at runtime declare the Direct2DShape
unit in uses clause and use the TDirect2DShape
object.
uses Direct2DShape;
Check out the sample code available and compare by your own.