Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

c++: 4 channel image. How to trim edges with transparency = 0?

I have a 4 channel image (png), what is the best way to trim away the edges that has 0 transparency with performance in mind?

Before:
image description

After:
image description

Thanks.

c++: 4 channel image. How to trim edges with transparency = 0?

I have a 4 channel image (png), what is the best way to trim away the edges that has 0 transparency with performance in mind?

Before:
image description image description

After:
image description

Thanks.