Sign in to follow this  
Followers 0
BrettF

Remove Black around Gif...

6 posts in this topic

My program downloads rardar images from the internet and the displays them in a GUI. When it downloads, it shows up white in preview, but in the program the border is black??

Thanx

Share this post


Link to post
Share on other sites



The reason it is doing this is because the border that you claim is white really isn't white. It is 100% transparent and therefore has no color. To fill it in, AutoIt selects black to be the background that the gif sits on and since that part of the gif image is transparent, the color black shows through it there. I tried to use GUICtrlSetBkColor() to change this, but i had no luck. If it really bothers you, don't use a gif. See if they have other images that are jpeg since jpg files don't support transparency. I personally didn't have any problem with the picture's border being black. Looked absolutely fine to me.


"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post


Link to post
Share on other sites

@The Kandie Man: Thankyou, but you must have missread my code or something, because it downloads .gifs from the internet.

@SmokeN: Thanks, but it sadly didnt help, on a closer look in the helpfile i saw:

Only Label, Checkbox, Group, Radio, Edit, Input, List, Listview, ListviewItem, Treeview, TreeviewItem, Graphic and Progress controls can currently be colored.

I think thats probablly my answer, it can't be done :whistle:

Thanks all.

Share this post


Link to post
Share on other sites

@The Kandie Man: Thankyou, but you must have missread my code or something, because it downloads .gifs from the internet.

@SmokeN: Thanks, but it sadly didnt help, on a closer look in the helpfile i saw:

I think thats probablly my answer, it can't be done :whistle:

Thanks all.

You obviously don't understand what either of us are saying.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0