Registriert seit: 24. Mär 2003
Ort: Freiburg im Breisgau
317 Beiträge
Delphi 7 Professional
|
Re: [DelphiX] Zeichnen mit Transparenz
28. Jul 2006, 10: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
|