Jump to content
Sign in to follow this  

about Opacity

Recommended Posts

I am going on a project name OpenIndex but the Opacity of the png back ground become grey

_GDIPlus_Startup ()

FileInstall('Image\Background.png', @TempDir & '\openimage1', 1);-

Local $hImage = _GDIPlus_ImageLoadFromFile (@TempDir & '\openimage1');-

FileDelete(@TempDir & '\openimage1')

Local $width = _GDIPlus_ImageGetWidth ($hImage)

Local $height = _GDIPlus_ImageGetHeight ($hImage)

$Main_Gui = GUICreate('OpenIndex V.' & $Version, $width, $height, -1, -1,$WS_POPUP)


Local $hGraphic = _GDIPlus_GraphicsCreateFromHWND ($Main_Gui)

Local $hBitmap = _GDIPlus_BitmapCreateFromGraphics($Width, $Height, $hGraphic)

_GDIPlus_GraphicsDrawImage ($hGraphic, $hImage, 0, 0)


_GDIPlus_GraphicsDispose ($hGraphic)

_GDIPlus_ImageDispose ($hImage)

_GDIPlus_ShutDown ()

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...