Create
- Create a new instance using the TemplateImage constructor.
- Set the Type string of the instance.
- Set one of the image properties of the instance:
- Bitmap, Hbitmap, Hdib, Image.
For more information see the TemplateImage overview.
- Associate the instance with a FormDefinition by adding it to the FormDefinition’s TemplateImages collection.
Write to Persistent Storage
A TemplateImage is written to persistent storage when the FormDefinition instance it is associated with is written to persistent memory. See FormDefinition Write.
Load from Persistent Storage
A TemplateImage, stored in persistent storage, is loaded when the FormDefinition it is associated with is loaded from persistent storage. See FormDefinition Read.
Access the ImageData
Once the TemplateImage is loaded from persistent storage, access the image data through the image property that returns the image format that is most convenient to you: Bitmap, Hbitmap, Hdib, Image.
See Also