TX Text Control ActiveX Documentation

Using Images

TX Text Control provides three different methods for inserting images:

  • The ImageInsert method is the default method for inserting images. An image inserted with this method is anchored to a paragraph. Text can flow around the image, and the image moves with the paragraph.
  • Images inserted with the ImageInsertAsChar method are handled like a single character in the text. This method is often used for inserting small images and icons.
  • The ImageInsertFixed method inserts an image at a fixed position on the page. The image will keep its position regardless of the surrounding text.

Images can be inserted from a file or from the clipboard. When saving a document, you can select whether to embed image data in the document file, or save a reference to a seperate image file. Note that not all options are available in all file formats. For instance, while image data can be embedded in .RTF, .DOCX and .DOC files, HTML does not provide this option.

Further options are:

  • to convert images to a different file format,
  • to convert embedded images to image files, and
  • to change image resolution and compression rate.

This is especially useful, if you create HTML files, where embedded images and image file formats like WMF or TIFF need to be converted to JPEG or GIF files for display in a browser. Image resolution and compression settings are also required for creating PDF files, for instance to create one version of a PDF with low-resolution images for viewing on screen, and another one with high resolution images for printing.

An overview of all properties, methods and events which can be used in conjunction with images can be found at Images, Text Frames and OLE Objects. Properties which have a name that begins with "Object" can be used with images as well as other kinds of embedded objects, like text frames and OLE objects, whereas those starting with "Image" only apply to images.

Inserting an Image

Setting Image Attributes

 
 
 

Products

Support

Downloads

Corporate

Buy Now