Jump to content
Sign in to follow this  
WolfWorld

about Opacity

Recommended Posts

WolfWorld

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)

GUISetState();-

Local $hGraphic = _GDIPlus_GraphicsCreateFromHWND ($Main_Gui)

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

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

GUIRegisterMsg($WM_NCHITTEST, 'WM_NCHITTEST');-

_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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.