bruno-ios:这个简单的库可帮助您以RGB565格式表示图像
布鲁诺这个简单的库可帮助您以RGB565格式表示图像。使用示例: // get some source image let source = UIImage ( ... ) // resize image to 8x8pm, convert image from RGB8888 to RGB565 format let data = source. encodeRGB565 ( width : 8 , height : 8 ) // convert image from RGB565 to RGB8888 format let image = data ? . decodeRGB565 ( width : 8 , height : 8 )安装迦太基如果使用,则可以将以下依赖项添加到Cartfile : github "appunite/bruno-ios" "mast
216.4KB
文件大小:
评论区