Tag: pix

从Leptonica的Pix结构创buildUIImage

我想在我的iOS应用程序中使用Leptonica库来处理图像。 有谁知道如何从Leptonica的Pix结构中的原始数据创buildUIImage : /*————————————————————————-* * 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; /* reference count (1 if no clones) */ l_int32 xres; /* image res (ppi) […]