fatpig Posted January 5, 2018 Share Posted January 5, 2018 can anyone tell me how I stop this from occuring when I place a jpg in my GUI? White parts become black. might be transparent, too. Not sure. thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted January 5, 2018 Developers Share Posted January 5, 2018 23 minutes ago, fatpig said: White parts become black. might be transparent, too. Not sure. Maybe you could have checked before posting to help us help you? Have you tried settimg the background to white? Without some script code there isn't much we can help with. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
fatpig Posted January 5, 2018 Author Share Posted January 5, 2018 oh, alright so this is not standard behaviour? Link to comment Share on other sites More sharing options...
Developers Jos Posted January 5, 2018 Developers Share Posted January 5, 2018 3 minutes ago, fatpig said: oh, alright so this is not standard behaviour? So you seriously think we create a function to display a JPG in a gui and then deliberately fuck it up by making a part black? Jos careca 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
fatpig Posted January 5, 2018 Author Share Posted January 5, 2018 haha obviously... Back in school when we programmed in "MetaCard", there was always one color in a jpg assigned to transparency, so I assumed this might work in the same way. It seems to be the white parts that are discolored, mirroring the JPG compression there I guess. I use GuiCtrlCreatePic. I just tried to change the BkColor and sure enough, its transparent! Link to comment Share on other sites More sharing options...
UEZ Posted January 5, 2018 Share Posted January 5, 2018 Use GDI+. There are plenty of examples how to display an image in the GUI properly. 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