AlmarM 22 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 MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
Yashied 242 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 HelperAnimated 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 LibraryAppropriate 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 alignmentMore... Share this post Link to post Share on other sites
AlmarM 22 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. MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
Yashied 242 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 HelperAnimated 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 LibraryAppropriate 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 alignmentMore... Share this post Link to post Share on other sites
Richard Robertson 187 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 Share this post Link to post Share on other sites
AlmarM 22 Posted May 24, 2010 Oki! *Looks at _GUICtrlEdit_SetSel()* MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
UEZ 1,295 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Share this post Link to post Share on other sites