x_bennY Posted February 9, 2018 Posted February 9, 2018 I have a picture(white picture) inside my GUI with transparent background and i want to change the color of it! How could i do it? This is how i'm creating it: $idPic2 = GUICtrlCreatePic("", $logo_leftPos, $logo_topPos, $logo_Width, $logo_Height) ; resized picture $hBitmap2 = _Resource_GetAsImage('PNG_LOGO_NORMAL') $hBitmap_resized = _GDIPlus_ImageResize($hBitmap2, $logo_Width, $logo_Height) ;GDI+ bitmap $hHBitmap2 = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap_resized) ;GDI bitmap _WinAPI_DeleteObject(GUICtrlSendMsg($idPic2, $STM_SETIMAGE, $IMAGE_BITMAP, $hHBitmap2)) With this function the image is created with transparent background, what i want to do is to put a option in the gui to change the color of the picture. Thx!
Moderators JLogan3o13 Posted February 9, 2018 Moderators Posted February 9, 2018 (edited) @x_bennY please wait at least 24 hours before bumping your post. This may be the most important thing in the world to you, but you need to show some patience. Edited February 9, 2018 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
UEZ Posted July 24, 2018 Posted July 24, 2018 Check out _GDIPlus_ImageAttributesSetRemapTable from the help file how to change a color. 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
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