![]()
Plugin SDK for ESP3
C# Class
ESP3 uses C# reflection as its plugin mechanism. Creating a plugin is straightforward and requires no Interface.
The sample sdk code is available free in the Lite or Pro Version.
Step 1. Download the Lite Version from the download page, or order the Pro
version to enable plugins
Step 2. Open up the visual studio project located in the plugins folder. The
provided sample creates a simple user interface and converts the Left and Right
Bitmaps to grayscale.
Step 3. Copy the project as a starting point, or create a new class library
that implements the desired methods documented in the example.
Step 4. Put your dll in the plugins folder. Restart ESP3 to rescan the plugins.
(Dynamic rescanning is coming soon)
ESP3 internal behaviour:
On startup the plugins folder is scanned and plugins are added to the plugins
menu (Pro Version only)
When a user selects a plugin from the list it is loaded and added to the internal
plugins chain.
The host calls SetWindow, SetPanel, SetImages to notify your plugin of the Host
Window, the available Panel for user interface, and the currently displayed
Bitmaps. (Left, Right and Depth)
Your plugin creates its user interface as child controls on the provided Panel
object.
Should the current document or images change, the host calls SetImages again
with the new references to the images. E.g. after undo.
All Bitmaps are ref Bitmaps, so changes made are made immediately, but not invalidated.
When your plugin wants to update the view, simply Invalidate the provided Window
control. .e.g myMainWindow.Invalidate();
Future SDK functions:
Calling methods in the host
Save and Load callbacks
Accessing the Digitizing tablet, drawing functions
ESP3
Plugin SDK |
Need Help? Questions? |