Create UIImage from Leptonica's Pix structure
问题 I want to use Leptonica library in my iOS app to process images. Does anybody knows how can I create UIImage from the raw data in Leptonica's Pix structure: /*-------------------------------------------------------------------------* * Basic Pix * *-------------------------------------------------------------------------*/ struct Pix { l_uint32 w; /* width in pixels */ l_uint32 h; /* height in pixels */ l_uint32 d; /* depth in bits */ l_uint32 wpl; /* 32-bit words/line */ l_uint32 refcount; /