1. FreeImage 简介
FreeImage 官网:
FreeImage 的英文版功能简介如下:
- Loading and Saving of as many bitmap types as possible
- Easy access to bitmap components,such as palette and data bits
- Converting bitmap’s bit depths from one to another
- Accessing pages in a bitmap when there are multiple.such as in TIFF
- basic manipulation of bitmaps,such as roation,flipping and resampling or point
- Alpha compositing and alpha blending
FreeImage 支持几乎所有图片格式的解析,解码,转码,图像处理,支持的图片格式包括 PNG,JPG,BMP,TGA,TIFF ... ;支持的图像处理操作包括 gamma校正,对比度,亮度,toneMapping,Alpha blending 等
FreeImage doesnot support:
- Advanced image processing operations such as convolution and transforms
- Bitmap drawing
- Vector graphics
2.FreeImage 使用方法
FreeImage 支持 VisualStudio,Linux,Cygwin,MacoS 等平台,在 windows下开发可以直接下载编译好的 动态链接库文件,在VisualStudio 中设置对应的头文件和库文件的路径

x32 和 x64 平台的库都有提供,注意设置时要对对应平台设置头文件和库文件路径。

FreeImage是一个开源库,支持多种图像格式的读写和处理,包括旋转、翻转、调整亮度和对比度等。它不支持高级图像处理操作如卷积和变换,但提供了丰富的API供开发者获取图像信息,如尺寸、色彩深度、像素数据等。在Windows环境下,开发者可以方便地在VisualStudio中使用预编译的动态链接库。文章还介绍了FreeImage的初始化、图像加载保存、获取图像信息、像素访问、图像格式转换和基本图像处理的相关API用法。
最低0.47元/天 解锁文章
6718





