programmatically trimming (automatically cropping out transparent boundaries) an image in objective-
- by Ferris
Does anyone know how to trim an image (uiimage or cgimage). By trim I mean programatically cropping to the non-transparent bounds of an image. So if I have the image below:
00111000
00010000
01011110
00000000
it would yield:
011100
001000
101111