AlmarM Posted May 24, 2010 Share Posted May 24, 2010 Hiya! I have a question about GDIPlus (I guess). Let's say I load a picture into my GUI as background image, is there a way to lowers its contrast? I never used GDIPlus so I have no idea if that could help me. Any help, tips, examples are appreciated. AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Yashied Posted May 24, 2010 Share Posted May 24, 2010 (edited) Contrast or transparency?See exapmle for _WinAPI_AlphaBlend() from WinAPIEx.au3. Edited May 24, 2010 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
AlmarM Posted May 24, 2010 Author Share Posted May 24, 2010 Contrast or transparency? See exapmle for _WinAPI_AlphaBlend() from WinAPIEx.au3. Something like this. Also, why can't I just use "CTRL + A" in GUICtrlCreateEdit to select all? Is there anything like WM_SELECTALL ? Woosh, fast replies ftw. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Yashied Posted May 24, 2010 Share Posted May 24, 2010 (edited) Use FreeImage.au3.Also, why can't I just use "CTRL + A" in GUICtrlCreateEdit to select all? Is there anything like WM_SELECTALL?No. Look at GUISetAccelerators() and _GUICtrlEdit_SetSel(). Edited May 24, 2010 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Richard Robertson Posted May 24, 2010 Share Posted May 24, 2010 (edited) If you want to "wash out" the image, there are any number of ways to do this. The easiest is obviously to modify the picture beforehand.If you want to have it dynamic though, you should save a copy of the image to say the temp folder, in a location where you could open it again if the same image were selected.A way you could do this is to enumerate all pixels (LockBits first, don't try using GetPixel and SetPixel, they are too slow) and simply slide them all toward black a bit. If you would like, I could whip up an example.Edit: The FreeImage UDF would probably be faster. Edited May 24, 2010 by Richard Robertson Link to comment Share on other sites More sharing options...
AlmarM Posted May 24, 2010 Author Share Posted May 24, 2010 Oki! *Looks at _GUICtrlEdit_SetSel()* Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
UEZ Posted May 24, 2010 Share Posted May 24, 2010 Have a look to the great GDIp.au3 UDF by Authenticity! You will find a lot of GDI+ functions!BR,UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now