Yes It Is: http://www.micrel.cz/Dx/
Same DrawAlpha code (un)DelphiX1.0.8.2 is good.But (un)DelphiX1.0.8.4 DrawAlpha No Work!DrawAdd not work of FullScreen,but work good in Window model.
Yes It Is: http://www.micrel.cz/Dx/
Same DrawAlpha code (un)DelphiX1.0.8.2 is good.But (un)DelphiX1.0.8.4 DrawAlpha No Work!DrawAdd not work of FullScreen,but work good in Window model.
Please how use it?
Or send me snippet of code for test.
And version of your Delphi?
Ijcro.
The Code:
................
dsuf.DrawAdd(DestRect, SrcRect,ssuf,true, 255) ;{not work of FullScreen,but work good in Window model}
................
var
  d: TDirectDrawSurface;
  rc: TRect;,
...........
dsurface.DrawAlpha(rc,d.ClientRect, d, True, 200);//No Work
.....................
The Pic.bmp is 8 Bit 256 Color. Transparent color is clBlack 00000000
Thanks!
I'm not a UnDelphiX expert but did you try enabling/disabling the Do3D and DoDirectX7 options in DXDraw > Options? It might be a good idea to play with the options a bit, and you might figure out how to make it all work.
Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.
This made me think if you are using different pixelformat in fullscreen than your desktop is. Try setting it use 16, 24 or 32 bit colors in fullscreen and see if it effects.Originally Posted by freedelphi
Yes, Display should be 1024 x 768 x 16. The way I use DrawAdd and drawAlpha is as follows:
Code:dxImageList.Items[26].DrawAdd(DXDrawGame.Surface, Bounds(30, 660, 296, 43), 0, Trunc(Cos256(FAngle)*126+127));And do3d and doDirectX7 should be set to false.Code:formGame.DXImageList.Items[formGame.fadingImageIndex].DrawAlpha(formGame.DXDrawGame.Surface,ImageRect,0,Alpha);
Hope this helps
Wake up from the dream and live your life to the full
Bookmarks