VoyForums

VoyUser Login optional ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123456[7]8910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 17:34:22 12/04/01 Tue
Author: Michel
Subject: Re: Permanent Text on Image
In reply to: Tim Griffin 's message, "Permanent Text on Image" on 15:01:50 12/04/01 Tue


Hi Tim,

You simply need to save the image after drawing on the Canvas.

Best regards,

Michel

>I'm putting text over images similar to your message
>below. But how do I make the text a permanent part of
>the image?
>
>Thanks much!
>
>Tim Griffin
>--------------------------------------------
>
>Date Posted: 10:19:33 04/02/00 Sun
>Author: Michel
>Subject: Re: Text on Image
>In reply to: Bernhard cotton 's message, "Text on
>Image" on 10:19:33 04/02/00 Sun
>
>
>Hi Bernhard,
>
>The Canvas property of the TDibGraphic class may be
>used to
>print text (or draw lines, rectangles, etc...) on an
>image.
>See Delphi's online help on TCanvas for the available
>methods.
>
>For example, the evaluation version uses this to
>display the
>name of the library in the upper left corner:
>
>Graphic.Canvas.Font.Size := 10;
>Graphic.Canvas.Font.Name := 'Arial';
>Graphic.Canvas.Font.Style := [fsBold];
>Graphic.Canvas.Font.Color := clLime;
>SetBkMode(Graphic.Canvas.Handle, Windows.TRANSPARENT);
>
>Graphic.Canvas.TextOut(4, 2, 'Envision Image Library
>Demo');
>
>Graphic.Canvas.Font.Color := clGray;
>Graphic.Canvas.Font.Size := 9;
>Graphic.Canvas.TextOut(4, 20,
>'www.intervalsoftware.com');
>
>SetBkMode(Graphic.Canvas.Handle, Windows.OPAQUE);
>
>Graphic is a reference to a TDibGraphic class which
>may be
>contained for example in the TImage.Picture.Graphic
>property, or the TImageScrollBox.Graphic property.
>
>When using the TImageScrollBox component, make sure the
>Redraw method is called after writing on the Canvas of
>the
>Graphic.Canvas property.
>
>Best regards,
>
>Michel
>
>> Could you please post an example of how to place text
>> over the image.
>>
>> It was on this site once.
>>
>> Thank you.

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 2.94, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.