IMAGEPLUS v2.0
ImagePlus is a TIMage descendant that can save text with a graphic in a single modified file and load both graphic and text if required. There is no apparent difference in the graphic file except in size. The graphic can be shown proportionally correct using either the vertical or horizontal axis set at design time as the ruling axis. See ImagePlus.pas for procedures and properties.
The demo program uses JPEG and RichEdit to allow the addition of Rich Text to a JPEG but you need not use either. You can add text to any of the allowed graphic formats.
To use the demo, first open Clown.jpg with 'Open a graphic' then do the same with 'LoadWithText'. You will see the text that has been added into the file. Try the other examples.
To create a graphic with text, open an unmodified graphic. ( To delete text from a modified graphic file, open the file with a graphic editor then save it.) Create the text you want to add ( by using WordPad to create the text and pasting it in you can easily create a rich text addition) then save the graphic using 'SaveWithText'.
It is a simple component and I'm sure that someone can improve on it. Send me a copy if you make any changes.
Brian Shepherd
bshepherd@iname.com
Apr 1999