Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 13.07.06 14:55 
Ich zeichne mit Canvas auf ein Image. Wenn ich neuzeichnen möchte, bleibt immer die alte 'Zeichnung' zu sehen. Mit welchem Befehl kann ich die Leinwand vor dem Neuzeichnen löschen?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
fidionael
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 232

Win XP SP2, Ubuntu 6.06
Delphi 7 PE, Delphi 3 Prof
BeitragVerfasst: Do 13.07.06 15:42 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
with Image1.Canvas do begin
  Brush.Color:=RGB(255,255,255);
  FillRect(rect(0,0,Image1.Width,Image1.Height));
end;
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 13.07.06 17:22 
Danke das funktioniert.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
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: Fr 14.07.06 08:57 
Geht das nich auch?
ausblenden Delphi-Quelltext
1:
Image1.Canvas.Invalidate;					


Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN