Autor Beitrag
Teddy
Hält's aus hier
Beiträge: 8



BeitragVerfasst: So 11.02.07 19:46 
Wie kann ich ein Image erneuern oder den Inhalt entfernen ohne es nur mit weißen Rechtecken zu überdecken, wie ich es bisher tat?
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: So 11.02.07 19:48 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
with image1.canvas do
begin
   Brush.Style := bsClear;
   FillRect(Rect(0,0,Image1.Width,Image1.Height));
   Brush.Style := bsSolid;
end;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Teddy Threadstarter
Hält's aus hier
Beiträge: 8



BeitragVerfasst: So 11.02.07 19:53 
ne genau das hab ich bis jetzt ja auch gemacht... das ist aber nur überdecken... geht das auch anders? oder ist das unmöglich?
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: So 11.02.07 19:55 
Hast du den Code ausprobiert? :roll:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Teddy Threadstarter
Hält's aus hier
Beiträge: 8



BeitragVerfasst: So 11.02.07 19:57 
ja früher schon... Dann ist ja auch alles weg und man sieht nur die weiße Fläche, aber in wirklickeit ist da ja noch was drunter... Deshalb will ich lieber das da drunter löschen anstatt zu übermalen ;)
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: So 11.02.07 20:03 
Hm entweder Image1.Hide oder Image1 zerstören und neu erstellen.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Teddy Threadstarter
Hält's aus hier
Beiträge: 8



BeitragVerfasst: So 11.02.07 20:06 
ok dankeschön... werd nochmal ein bissel umändern!
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 11.02.07 20:16 
ausblenden Delphi-Quelltext
1:
Image1.Picture:=Nil;					

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 11.02.07 20:37 
user profile iconTeddy hat folgendes geschrieben:
ja früher schon... Dann ist ja auch alles weg und man sieht nur die weiße Fläche, aber in wirklickeit ist da ja noch was drunter... Deshalb will ich lieber das da drunter löschen anstatt zu übermalen ;)

Da ist nix drunter. Da wird einfach die Farbe geändert. Fertig.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 11.02.07 20:46 
Das von Blackheart ist das einzig Wahre :cool: :mrgreen:

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)