xyzxqs / XLowPoly

Lowpoly picture, Sandpainting for Android implemented by JNI, delaunay triangulation algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

关于项目中C实现的low poly的使用

iamhgdabc opened this issue · comments

你好,我把你项目中的c实现的low poly实现剥离出来编译成静态库使用,我是通过http协议获得压缩格式的图片,可能是jpeg、png等格式的,使用char指针存储,现在的问题是,你提供的接口中low poly处理的数据类型是int类型的,这里我是要把压缩类型转换成rbg类型在调用接口吗,还是其他的方式,我的项目是纯C项目

需要把不管是什么格式的图片转化成sRGB格式的像素数组。我在lowpoly.c中添加了一点注释,说明了如何调用这个接口。