Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Transparency problems with png images

Author
Message
niansenx
8
Years of Service
User Offline
Joined: 29th Jan 2016
Location:
Posted: 28th Mar 2016 13:34
Hi

I have two sprites that are overlayed, both saved as png images. The top one has transparencies which I have set using the alpha channel in the image file. The transparency should be 0% or 100%, there are no semi-transparent parts of the image. However, I am getting a greyish border around my upper image. I have turned off antialiasing in my image software, and I've also tried using the black parts as the transparent bits, and the image is only black and white. However the grey border remains. Am I doing something wrong?

Thanks.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 28th Mar 2016 13:51
It might be a filtering issue. You can turn off filtering per image using:
Quote: "
SetImageMagFilter(yourtopimage,0)
SetImageMinFilter(yourtopimage,0)
"

V2 T1 (Mostly)
Phone Tap!
Uzmadesign
niansenx
8
Years of Service
User Offline
Joined: 29th Jan 2016
Location:
Posted: 28th Mar 2016 16:03
You beauty! That's perfect! Thanks.

Login to post a reply

Server time is: 2024-09-29 13:25:48
Your offset time is: 2024-09-29 13:25:48