|
How to use TPluginDrawer?
Nothing special - drop component onto the form, add it into Drawers collection of TImageEditor and enter the DLL file name into Dll property of TPluginDrawer component. If you want to modify functionality of TPluginDrawer, just use events. If you'll set Processed parameter to True, the default code of TPluginDrawer's appropriated method will be ignored.
Of course, plugin can be connected at runtime with pair lines of code:
with ImageEditor1.Drawers.Add do
begin
Drawer:=TPluginDrawer.Create(Self);
TPluginDrawer(Drawer).Dll:='YourPlugin.dll';
end;
All procedures must be exported by names, the names are the same as the names of appropriated drawer's methods.
The plugin DLL project template is included into Image Editor Suite.
|