FormFix v6.0 for .NET - Updated
TemplateImage
Developer Guide > How To > Use FormDirector > Store Data & Operations > TemplateImage

Create

  1. Create a new instance using the TemplateImage constructor.
  2. Set the Type string of the instance.
  3. Set one of the image properties of the instance:
    1. Bitmap, Hbitmap, Hdib, Image.
      For more information see the TemplateImage overview.
  4. 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
Is this page helpful?
Yes No
Thanks for your feedback.