Autor Beitrag
>spEEd>
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62


Delphi 2005 Pers.
BeitragVerfasst: Sa 03.06.06 00:32 
Hi,

ich weiß, es ist schon fast peinlich sowas zu fragen ... aber wie kann ich ein Bitmap anzeigen lassen?!
Ich habe es mit Bitmap := TBitmap.Create; erstellt und bekomme es irgendwie nicht hin, dieses (leere) Bild anzuzeigen, damit ich es als Malunterlage nutzen kann. Muss man da irgedwo noch .Parent angeben (was bei mir nicht in der Auswahl-Liste steht) oder geht das über Form.Canvas.Draw was mein Delphi irgendwie nicht kennen möchte ([Fehler] FormProgramming_3D.pas(477): E2003 Undefinierter Bezeichner: 'Canvas') oder ganz anders???

Selbst die SuFu hat mir nicht wirklich weiter geholfen :(

>spEEd>
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 03.06.06 01:04 
Hallo,

Erstelle dir ein TImage und lade mit image1.picture.loadfromfile(...) das Bild ein.

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Sa 03.06.06 08:00 
(1) einfach
ausblenden Delphi-Quelltext
1:
Form.Canvas.Draw (0,0,Bitmap);					

(2) besser
BitBlt + F1

mfg

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
>spEEd> Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62


Delphi 2005 Pers.
BeitragVerfasst: Sa 03.06.06 16:47 
Mit BitBlt hatte ich noch nichts zu tuen. Ich habe momentan leider nicht genug Zeit mich darüber zu informieren, da mein Programm am Dienstag funktionieren muss (für die Geschwindigkeit reicht da vorerst TImage.Picture.Bitmap aus). Ich werde danach allerdings versuchen mich darin einzuarbeiten und mein Programm ein wenig zu optimieren.

Vielen Dank an alle Helfer!