Results 1 to 6 of 6

Thread: (un)DelphiX 1.0.8.4 DrawAlpha No Work!

  1. #1

    (un)DelphiX 1.0.8.4 DrawAlpha No Work!

    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.

  2. #2

    Re: (un)DelphiX 1.0.8.4 DrawAlpha No Work!

    Please how use it?
    Or send me snippet of code for test.
    And version of your Delphi?
    Ijcro.

  3. #3

    Re: (un)DelphiX 1.0.8.4 DrawAlpha No Work!

    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!

  4. #4

    Re: (un)DelphiX 1.0.8.4 DrawAlpha No Work!

    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.

  5. #5

    Re: (un)DelphiX 1.0.8.4 DrawAlpha No Work!

    Quote Originally Posted by freedelphi
    {not work of FullScreen,but work good in Window model}
    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.

  6. #6

    Re: (un)DelphiX 1.0.8.4 DrawAlpha No Work!

    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));
    Code:
    formGame.DXImageList.Items[formGame.fadingImageIndex].DrawAlpha(formGame.DXDrawGame.Surface,ImageRect,0,Alpha);
    And do3d and doDirectX7 should be set to false.

    Hope this helps

    Wake up from the dream and live your life to the full

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •