Announcement

Collapse
No announcement yet.

Looking for idea or code for showing png icons under XP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Edwin Knoppert
    replied
    Gdiplus can draw it perfectly on my btnface colored dialog.
    (PwrDev code
    Code:
        Local hDC As Long 
        Local lpImage As Long 
     
        lpImage = VD_GDIPlus_LoadFromFile( "c:\App004.png" )     
        hDC = GetDC( nCbHndl ) 
     
        VD_GDIPlus_DrawImageToDC( hDC, lpImage, 10, 10, 0, 0 ) 
       
        VD_GDIPlus_DisposeImage( lpImage ): lpImage = 0 
     
        ReleaseDC( nCbHndl, hDC )

    Leave a comment:


  • Edwin Knoppert
    replied
    I have been able to save the bits to a png file and the Windows image viewer shows it 100%

    But i have used gdiplus to convert it to bmp, jpg and gif and all loose the transparency(!)

    It becomes black.
    How can i show a neat transparent bitmap from the png file?

    Leave a comment:


  • Looking for idea or code for showing png icons under XP

    The ico-format seems pretty clear, i suspect i can save the bits to a separate file but i am not sure it will load.
    any idea to show such icons properly?
Working...
X