Autor Beitrag
mattl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: So 06.08.06 13:16 
Gibt es die Möglichkeit dass wenn ich den BorderStyle auf BsNone habe das ich dann eine Grafik über den eigentlichen Formularrand hinausreichen lasse
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 06.08.06 13:22 
M.E. nicht, weil es ja dann ausserhalb des Canvas der Form wäre.

_________________
Markus Kinzler.
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: So 06.08.06 13:28 
Vll ist es dann möglich das ein Teil des Formular durchsichtig ist und es nur so aussieht als ob die grafik darüber hinausreichen würde?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 06.08.06 13:29 
das wäre prinzipiell schon möglich, aber wohl aufwendig(er)

_________________
Markus Kinzler.
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: So 06.08.06 13:52 
Wie ich sehe, hast du Delphi 2005. Dort gibt es die Eigenschaft AlphaBlendColor. Alles, was auf der Form diese Farbe hat, wird komplett durchsichtig :)
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 06.08.06 14:28 
Aber was ist mit der Titleleiste usw.?

_________________
Markus Kinzler.
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: So 06.08.06 14:51 
titelleiste gibt’s nicht wenn borderstyle bsnone ist

aber wie ist das mit der Farbe ich kann das aktivieren und den grad der Transparenz einstellen aber keine spezielle Farbe auswählen
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: So 06.08.06 15:57 
Sorry, hab mich vertan:
ausblenden Delphi-Quelltext
1:
2:
Form1.TransparentColorValue := clPurple;
Form1.TransparentColor := true;
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: So 06.08.06 17:21 
ok funktioniert
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Mo 07.08.06 07:15 
doch noch eine Frage dazu kann man die Transparent Color auch auf den Farbinhalt von TImage beziehen?

wenn ich mit einem anderen Programm den genauen RGB wert der Delphi Farbe ermittle...
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 07.08.06 07:38 
Meinst du das?
Form1.TransparentColorValue := Image1.Canvas.Pixels(1,1); Hier nehme ich den Farbwert des Pixels 1 / 1 aus dem Image als Transparentfarbe...
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Mo 07.08.06 08:03 
nein so nicht ich möchte das ein gewisse farbe des TImage auch transparent wird
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 07.08.06 08:17 
Dann guck die die Eigenschaft Transparent des TImage an - steht die auf true wird die Farbe transparent die das Bild "einramt" - ziehst du also zB einen 1 pixel breiten, roten Rand komplett um das Bild - wird dieser, und alle anderen roten Pixel dieses Bilds, transparent.

mfg
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Mo 07.08.06 08:37 
ok schon mal danke kann man vll auch noch eine gewisse toleranz einstellen
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 07.08.06 08:48 
Du meinst dass sehr änliche Farbwerte transparent werden? Dass geht mit den Standardkomponenten meines Wissens nicht - kannst ja im Internet nach entsprechenden Komponenten suchen oder versuchen das selbst zu realisieren... :roll: