Standard and Third-Party Image Formats

TRichView documents can contain images of any format supported by Delphi/C++Builder. The standard graphic formats are:

  • bitmaps (TBitmap);
  • windows (16-bit) and enhanced (32-bit) metafiles (TMetafile);
  • icons (TIcon);
  • Jpeg images (TJPEGImage, since Delphi 3);
  • Gif images (TGifImage, a standard graphic class since Delphi 2007).
  • Png images (TPngImage, a standard graphic class since Delphi 2009).
  • Tiff images (TWicImage, a standard graphic class since Delphi 2010).

Additional graphic formats can be supported with third-party graphic classes (descendants of TGraphic).

Additional information: How to use PNG and GIF images in TRichView.

An Image in a document

Image Resizing

Users can resize images with the mouse.

Image resizing


TRichView supports animated images:

  • Gif animations;
  • Bitmap animations (a bitmap is divided into frames).

Background Images

You can add a bitmap image to the background. This image can be centered, stretched, or tiled. Tiled images can be fixed or scrolled with the document's content.

Tables and cells can have background images as well.

Chat 'avatars' are represented as images from TImageList. Also, you can see a background image here

Images from Image Lists

This is an unique feature of TRichView.

Images can be inserted just from Image Lists! This is a very memory-efficient way to represent repeated small graphics in documents (TRichView stores only an image index and a link to the TImageList)

Demo 1 with images from Image Lists: Demos\*\MultiDemo\

Demo 2 (menu Insert | Bullet and Insert | Hot Spot): Demos\*\Editors\Editor 1\

Tutorial on TRichView item types (see tutorial 1, project 5): Demos\*\Tutorial\

Images in Inserted Components

Another way of adding images is to insert them in Delphi/C++Builder controls (such as TImage), and then insert such controls into a RichView document.
Animated images can be inserted as well.

Additional information:

Custom Drawing

You can draw your own backgrounds and widgets with the custom-draw feature.

Demo: Demos\*\Assorted\CustomDraw\

Custom drawing: Gradient paragraph background

Images and Hypertext

Images can work as hypertext links. Hypertext images (hotspots) from an Image List can change their appearance under the mouse pointer.

Demo: Demos\*\MultiDemo\
A compiled demo project is included in “TRichView Showcase”

A hotspot changes under the mouse pointer

Special Effects

You can see an additional types of TRichView document items displaying translucent images with the specified value of transparency (TRVBlendBitmapInfo).

Demo: Demos\Addins\BlendBitmap\
A compiled demo project is included in “TRichView Showcase”

Semi-transparent images


Images (like other non-text objects) can be placed inside a text line, aligned to the top, the middle, the bottom of the line, or to the base line of text; or they can be aligned to the left or right side, with text flow around them.

* = DelphiUnicode, CBuilderUnicode, Delphi, CBuilder, depending on your Delphi/C++Builder version.