#2 Alpha Channel does not work

closed
nobody
None
5
2008-09-06
2008-05-28
No

I have PNG image with 32 bits (with alpha channel), i tried draw but nothing is drawed.

My code:

// Private declarations
{...}
Tex1: TAdImage;
{...}

// OnCreate (Form)
{...}
Tex1 := TAdImage.Create(AdDraw);
Tex1.Texture.LoadGraphicFromFile('C:\images\BattleFloor.png');
Tex1.Restore;
{...}

// MainLoop
{...}
AdDraw.ClearSurface(RGB(16, 64, 128));
AdDraw.BeginScene;

Tex1.Draw(AdDraw, 0, 0, 0);

AdDraw.EndScene;
AdDraw.Flip;
{...}

Plugin : AndorraDX93D.dll
Resolution : 800x600 (windowed)

This exemple does not work using OGL plugin too.

Why?

Thanks

Discussion

  • Andreas Stöckel

    Logged In: YES
    user_id=1499484
    Originator: NO

    I tried drawing the image you've attached, and this works pretty fine.
    Does drawing images work with other image formats? Or is this problem restricted to PNG files?

     
  • Andreas Stöckel

    • status: open --> closed
     
  • Jessé Carlos Alves

    Logged In: YES
    user_id=2101240
    Originator: YES

    Hi,
    I fix the problem reinstalling the graphic driver driver.

    Thanks and sorry.

     
  • Jessé Carlos Alves

    • status: closed --> open
     
  • Andreas Stöckel

    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks