Skip to main content

ImgCtlXHTML

ImgCtlXHTML

Method
(none)
Property
ImageBase64
ImageHex
Licence
ResizeToImage

The ImgCtlXHTML object is used to allow graphics images to be embedded within HTML documents as data instead of being referenced by URLs to external files. Images may be in a wide range of graphics formats, including PNG, GIF, TIFF, JPEG, and BMP. The image should be encoded using either Hex or Base64 strings. Base64 is preferred because it is more compact. The image data is embedded in the document by specifying the Class ID of the control and providing the encoded image data, e.g.

<pre>&lt;object classid="clsid:EFFD1818-3060-49a3-9C22-A06F57BBC167"&gt;
&lt;param name="ImageBase64" value="R0lGO.....hXBWwICAD"/&gt;
&lt;/object&gt;</pre>

In this example, the majority of the image data has been replaced with "….." for clarity.

Methods

None.

None

Properties

PropertyProperty TypeDescription
ImageBase64StringSets or gets the image text in Base64 format.
ImageHexStringSets or gets the image text in hex format.
LicenceVariantLicence object or string.
ResizeToImageBooleanWrite-enable control resize on image change.