AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia Delphi [DelphiX] Zeichnen mit Transparenz
Thema durchsuchen
Ansicht
Themen-Optionen

[DelphiX] Zeichnen mit Transparenz

Ein Thema von 3_of_8 · begonnen am 13. Jul 2006 · letzter Beitrag vom 14. Sep 2006
 
Benutzerbild von Flogo
Flogo

Registriert seit: 24. Mär 2003
Ort: Freiburg im Breisgau
317 Beiträge
 
Delphi 7 Professional
 
#11

Re: [DelphiX] Zeichnen mit Transparenz

  Alt 28. Jul 2006, 09:54
Hi ijcro,
could you give a quick explanation on how to get the alphachannel in the DIB? I tried it with Photoshop (new file -> background = transparent -> a few lines with the brush -> save as -> dib) but it just didnt save the alphachannel.
Well maybe it did, but there was no transparence while drawing on the DXDraw surface.
Is it possible to use the Sprite/ImageSprite classes just as before by changing the Image from a "foo.bmp" to a "foo.dib" or do you have to change something else?

[edit]

I just tried to load the image with this TDIB component and called
  DXDraw.Surface.LoadFromDIB(DIB.AlphaChannel); I saw the Alphachannel, so it must have been saved. But there is still no sign of the Alphachannel when I draw the picture as a Sprite..

[/edit]
If one coincidence can occur, then another coincidence can occur. And if one coincidence happens to occur just after another coincidence, then that is just a coincidence.
DNA

www.Anyxist.de
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:31 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz