Autor Beitrag
AlexII
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 180



BeitragVerfasst: Do 03.01.08 00:19 
Hab schon das ganze Forum auf den Kopf gestellt und komme nicht weiter.

Wie mache ich es, dass ein Bild auch beim Ziehen transparent bleibt? Form ist schon transparent, das bild beim öffnen des Programms auch, aber wenn ich das alles ziehen, wird das Bild nicht transparent :-( Der Desktophintergrund wird mit gezogen :-(
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: So 06.01.08 00:00 
Hi,

was für ein Bild? Ein TImage, eine TPaintBox, oder einfach ein Bild das mit OnPaint auf das Form gezeichnet wurde?

Ich würde mal verschiedene Varianten probieren (habs selber nicht probiert). Sofern es sich um eine PaintBox oder um Form1.OnPaint handelt, reagiert dein Prog auf OnPaint?

_________________
Life is a bad adventure, but the graphic is really good!
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 06.01.08 00:37 
Keiner spricht *mist*er als wie Mich (Oliver Kalkofe) :roll:
:wink:

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



BeitragVerfasst: So 06.01.08 01:02 
Kannitfastan? Was meinst du?????? Hab ich mich undeutlich ausgedrückt? Wenn ja, ein dezenter (nicht-kauderwelscher) Hinweis hätte gereicht ;)

_________________
Life is a bad adventure, but the graphic is really good!
AlexII Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 180



BeitragVerfasst: Di 08.01.08 00:44 
Ein bmp-Bild auf nem TImage :-)
Herr Bananerama
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 130



BeitragVerfasst: Di 08.01.08 07:16 
user profile iconAlexII hat folgendes geschrieben:
Ein bmp-Bild auf nem TImage :-)


Ich glaube damit das Image Transparent ist muss der hintergrund die gleiche farbe haben. Ich hab glaubi irgendwo mal gelesen das die Farbe von links oben in der Ecke von Trasparent geprüft wird und die anderen Pixel die diese Farbe haben auch trasparent gemacht werden. Vielleicht hast du einfach ein mit ganz wilden Farb übergängen bestücktes Bild ausgewählt. Bei mir Funktioniert es aufjedenfall.
AlexII Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 180



BeitragVerfasst: Di 08.01.08 15:22 
Ne das Bild ist soweit transparent, Form auch, alles wunderbar. AAAber wenn ich das ganze über Desktop schiebe (Drag&Drop) wird das Gezogene nicht transparent :-(

Am besten Screenshot1 und danach Screenshot2 angucken, dann wirds klar was ich will :-)

In Screenshot1 wird das Programmchen gestartet und die Rose ist transparent, dann aber ziehe ich die Rose auf dieses Forum Fenster und sie wird nicht mehr Transparent bzw. der Desktophintergrund bleibt an der Transparenz stelle.
Einloggen, um Attachments anzusehen!