- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Working with images that have the alpha channel premultiplied over the color channels has compositioning benefits, but persistence of such images in PNG format requires undoing the premultiplication. As such I'm looking for something to reverse the effect of the AlphaPremul function.
Is there any such thing readily available? In particular, I'm looking to use this on 8u_C4 images where one of the 4 channels contains the alpha channel by which to devide the remaining 3 channels. I believe something along those lines could be achieved using a Copy (to extract alpha channel), followed by a Dup (to duplicate alpha channel into 3 channels), and finally a Div in '8u_AC4IRSfs' variant where each of the 3 color channels is divided by the duplicated alpha channel. Given the number of passes through the data this would involve, I suppose it is not optimally efficient. Is there an established approach to this seemingly common scenario?
Link Copied
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page