Jump to content

Recommended Posts

Posted

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 :)

autoit-blacknwhite.png

  • Developers
Posted
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.
  :)

  • Developers
Posted
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

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.
  :)

Posted

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!

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
×
×
  • Create New...