AWS Thinkbox Discussion Forums

get pixel value

Hi,
Is there any way to get the color of a pixel at a specific point using the Draft.Image module? Or a way to get a dump of the raw bitmap data?

Ultimately I’m trying to take a set of input frames and crop them to the minimum size based on the alpha channel.

thanks

No, currently it is not possible to get the color of a pixel.

I’d like to make sure I understand: you want the smallest bounding box that contains all pixels with a non-zero alpha?

That’s exactly right.

Say I have a series of HD frames rendering out, with most everything alpha masked to 0 except for a little character who cruises around the scene. I need to take those frames and create a sprite sheet by cropping down to just the part that has alpha > 0. Then I can comp each of those cropped frames into a single image and have my sprite sheet.

Thanks! I will add that to our wish list.

Privacy | Site terms | Cookie preferences