ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Multi Photo Quotes

Problem loading alpha transparent PNG images

(1/2) > >>

xesenif:
Hi Mouser,

  Thanks for MPQ!  I love it!  I have a directory of alpha transparent PNG files (where the background or other parts of the image are transparent).  Some of these images load correctly (with no background), others with partial background, and others with a white background.  I tried changing many of the settings, but nothing worked.  I don't know if it's an issue with the speed of loading the images, or cropping, resizing, etc.  I like to run MPQ in window mode, but I also had the problem when I ran it as a screensaver.  Is it possible to fix this?  Thanks.

Problem loading alpha transparent PNG images

mouser:
Hmm.. interesting problem and the first time this has come up.. From your sample images it looks like it's not exactly clear what the right thing to do would be.. Would you want an option to set the color to be used for transparent areas? In your case it looks like most of the time that would be white.. but some of your images look like black would be a better choice..

xesenif:
I've attached some PNG (and one transparent gif) files and a screenshot of what they looked like in MPQ on my computer.  All the images have an alpha transparent background, so there shouldn't be a background image box around any of them.  I don't think setting a color to be transparent would help since the images already contain transparency.  Thanks for the quick reply and taking a look at this.

mouser:
Ok so the way i'm interpretting that screenshot is that MPQ is using WHITE in the transparent areas, and that where you see black is actually NON-TRANSPARENT BLACK.  Does that make sense?
And then the fix (for you at least) would be for MPQ to render the transparent areas black.

xesenif:
I think so....for the most part.  Yes, the white areas are suppose to be transparent.  Some of the images however, like with the green link character, and the red boomerang, have some black around them that is suppose to be transparent also.  So some of the images have some of the transparent part filled in.  But yes, basically all the large white areas are suppose to be transparent, and in this case black.

Navigation

[0] Message Index

[#] Next page

Go to full version