C图像库 [英] C Image Library

查看:140
本文介绍了C图像库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能推荐一个体面的ç图像库?

Can anyone recommend a decent C image library?

我装载机BMP,GIF,JPG,PNG和TGA后我。

I'm after loaders for bmp, gif, jpg, png and tga.

我想用这个编程我的索尼PSP ,所以开源将是非常方便的。

I want to use this for programming my Sony Playstation Portable, so opensource would be very handy.

一些googleing后,我发现FreeImage的和CIMG,但都觉得相当沉重,CIMG是C ++不是C。

After some googleing I've found FreeImage and CImg, but both feel rather heavy, and CImg is C++ not C.

推荐答案

如果你控制你加载图像,最轻的装载机我所知道的是肖恩巴雷特的真棒的 stb_image.c (直接链接到单个文件源$ C ​​$ C!)。

If you control the images you're loading, the lightest loader I know is Sean Barrett's awesome stb_image.c (direct link to single file source code!).

有也如一个微小的TrueType光栅和Vorbis DECOM pressor肖恩的网站上的其他非常值得的图​​书馆,顺便说一句。

There are also other very worthwhile libraries on Sean's site such as a tiny TrueType rasterizer and Vorbis decompressor, btw.

如果你需要使用OpenGL的stb_image图像加载,我会虚心一点你 SOILex ...

If you need OpenGL image loading that uses stb_image, I'll humbly point you to SOILex...

这篇关于C图像库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆