Graphics question: I've got a set of transparent graphics in old BMPs which uses a colour as the alpha mask.
-
Graphics question: I've got a set of transparent graphics in old BMPs which uses a colour as the alpha mask. Not all of the magenta pixels are exactly the same tone - seems like there's some gradient. Is that a technique that was ever used for 8-bit transparency back in the day? Or is this just a sign that the edge cutout wasn't done precisely?
-
And I guess followup question: if this *was* used for 8-bit transparency, is there a good way to do an automated conversion to a real alpha channel?
-
@misty I think that's just a mistake, yeah. There are some very rare cases where paletted files have more than one level of transparency, but that usually depends on specific shades of grey and their palette index, not magenta. You use magenta when you need only one transparent color
-
@misty I have some code to do this that works by calculating all the possible shades of grey and alpha values and how they'd merge together, and figure out what combination is closest to what we get. It's a mess and can't really run outside my machine, but I'd be happy to run it on your files if you can send 'em
-
@foone That makes sense, thanks! I was figuring it was likely a mistake.
This is in some files from something that was never finished, so it tracks that it just hadn’t been polished up yet.
-
@misty ahh, yeah, that makes sense. Probably they just did some rotation and we're planning to come back and clean it up
-
@foone That would be a big help, thank you! How can I send the files?
-
@misty dm me a link to a one click hoster, or dm me for my email address?