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
Antwort Antwort
Seite 2 von 2     12   
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
ijcro

Registriert seit: 30. Mär 2006
37 Beiträge
 
Delphi XE Professional
 
#12

Re: [DelphiX] Zeichnen mit Transparenz

  Alt 8. Sep 2006, 15:07
Helper exists and with it you can put DIB8 into alphachanel (or get out), please see into source in DIB units.
ijcro
  Mit Zitat antworten Zitat
Benutzerbild von Flogo
Flogo

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

Re: [DelphiX] Zeichnen mit Transparenz

  Alt 9. Sep 2006, 09:39
Do I have to Draw the DIB manualy or can I just go on drawing the ImageSprite with the DXSpriteEngine?
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
ijcro

Registriert seit: 30. Mär 2006
37 Beiträge
 
Delphi XE Professional
 
#14

Re: [DelphiX] Zeichnen mit Transparenz

  Alt 10. Sep 2006, 14:23
Aha, you is using DXSpriteEngine yet...
Whe you is using "new look" of DXSpriteEngine, you can use HW acceleration a picture with alpha channel, stored in DXImageList. When you prepare picture in other program in way joint DIB24 R8G8B8 and DIB8 A8 with function DIB32.AssignAlphaChannel(DIB8), no more. Please see to function HasAlphaChannel and property AlphaChannel in TDIB class too.
ijcro
  Mit Zitat antworten Zitat
ijcro

Registriert seit: 30. Mär 2006
37 Beiträge
 
Delphi XE Professional
 
#15

Re: [DelphiX] Zeichnen mit Transparenz

  Alt 14. Sep 2006, 10:54
Eh sorry, my English is worst than ever

ijcro
  Mit Zitat antworten Zitat
Benutzerbild von SirThornberry
SirThornberry
(Moderator)

Registriert seit: 23. Sep 2003
Ort: Bockwen
12.235 Beiträge
 
Delphi 2006 Professional
 
#16

Re: [DelphiX] Zeichnen mit Transparenz

  Alt 14. Sep 2006, 11:49
Zitat von ijcro:
Eh sorry, my English is worst than ever

Wo liegt dein jetziges Problem? ein Bitmap mit 32bit zu erzeugen wo der 4te Kanal der Alphakanal ist? wenn dem so ist könnt ich dir ein Programm zukommen lassen
Jens
Mit Source ist es wie mit Kunst - Hauptsache der Künstler versteht's
  Mit Zitat antworten Zitat
ijcro

Registriert seit: 30. Mär 2006
37 Beiträge
 
Delphi XE Professional
 
#17

Re: [DelphiX] Zeichnen mit Transparenz

  Alt 14. Sep 2006, 19:16
Well, you can send there code for test...
ijcro
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


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 04:26 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