Autor Beitrag
klezmor
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Fr 23.02.07 14:55 
Wenn ich eine normales image auf mein form ziehe, kann ich ja mit canvas draufzeichnen der hintergrund ist dann weiß. Wie kann ich die FArbe des hintergrundes ändern ohne extra ein bild laden zu müssen?

_________________
"Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth
marvin521993
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 172



BeitragVerfasst: Fr 23.02.07 15:01 
ausblenden Delphi-Quelltext
1:
Image1.Canvas.Ellipse(2,2,2,2);					


mfg

_________________
Marvin Tappert
Besiege einen Feind, und du erhälst 100 Neue!!!!Keine bösen Sprüche bin noch Anfänger
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Fr 23.02.07 15:10 
Das hat nichts mit ellipsen zu tun.

_________________
"Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth
marvin521993
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 172



BeitragVerfasst: Fr 23.02.07 15:13 
wenn du TImage auch als Ellipsenform hast schon probiers mal aus ;)

mfg

_________________
Marvin Tappert
Besiege einen Feind, und du erhälst 100 Neue!!!!Keine bösen Sprüche bin noch Anfänger
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Fr 23.02.07 15:14 
ausblenden Delphi-Quelltext
1:
Image1.Canvas.Brush.Color:=clWhite;					

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Fr 23.02.07 15:24 
user profile iconBlackheart666 hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
Image1.Canvas.Brush.Color:=clWhite;					


aber mit ner anderen Farbe funktionierts nicht - oder doch??

Saubäär
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 23.02.07 15:43 
doch!
z.b: clRed, clGreen oder andere cl*Wert* Werte! oder du kannst Hex werte nehmen!

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Fr 23.02.07 15:45 
user profile iconelundril hat folgendes geschrieben:
doch!
z.b: clRed, clGreen oder andere cl*Wert* Werte! oder du kannst Hex werte nehmen!

lg el


räusper... jaja schon klar.. aber hast du das mal ausprobiert???
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 23.02.07 15:47 
ne hab kein Delphi am I-Net PC!

Sry aber blöde Frage, blöde Antwort!

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Fr 23.02.07 15:49 
was heißt denn hier blöde frage??

auch wenn ich clRed, clBlue u.s.w. hinschreibt, bleibt das Image weiß!
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 23.02.07 15:52 
sry nehms zurück! my fault!

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Fr 23.02.07 15:54 
kein Problem!
Aber ne Lösung haste auch nicht wa? Habs schon im onActivate und im onPaint getestet aber es will einfach net??

Gruß

Saubäär
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: Fr 23.02.07 16:00 
Du musst, nachdem du die Farbe von TBrush geändert hast, Neuzeichnen ;) :
ausblenden Delphi-Quelltext
1:
Image.Canvas.FillRect(Rect(0,0,Image.Width,Image1.Height));					

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Fr 23.02.07 16:07 
ah ok funktioniert! Danke

Gruß

Saubäär
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Sa 24.02.07 12:36 
so hatte ich es auch zwishcenzeitlich gelöst

_________________
"Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth