Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi mit canvas.textout erstellter text soll im nächsten ... (https://www.delphipraxis.net/9191-mit-canvas-textout-erstellter-text-soll-im-naechsten.html)

Calimero 20. Sep 2003 07:54


mit canvas.textout erstellter text soll im nächsten ...
 
Ich habe folgendes Problem:

Ich erstelle ein Timage namens Modimage (640 x 480) und zeichne dort ein text rein.
diese bild übergebe ich ein anderes bild bez. zeichne.
diese bild ist nur 320 x 200 gross. Der Text sieht aber genauso aus wie in Modimage. Er sollte doch eigentlich auch die größe ändern oder ?
was mach ich falsch ?

Code:
modimage.width := 640;
modimage.height := 480;
image7.width := 320;
image7.height := 200;
image7.stretch := true;

modimage.Canvas.Brush.Style := bsClear;
modimage.Picture.Bitmap.Canvas.TextOut(0,0,'hier steht text');
image7.Canvas.Draw(0,0, modimage.Picture.bitmap);

Gollum 20. Sep 2003 07:59

Re: mit canvas.textout erstellter text soll im nächsten ...
 
Hallo,

Du musst StretchDraw benutzen.

Calimero 20. Sep 2003 08:10

Re: mit canvas.textout erstellter text soll im nächsten ...
 
jo danke

bin nicht drauf gekommen ist glaub ich noch zu früh.
Aber vielen dank:


image7.Canvas.StretchDraw(image7.ClientRect,modima ge.Picture.Graphic);


;-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:43 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz