PjConvertImageFormat:用FreeImage.NET写的一个35种图像格式转换程序

PjConvertImageFormat是一个利用FreeImage.NET库实现的图像格式转换程序,支持35种不同的图像格式之间的转换,包括bmp、jpeg、png等。该程序提供了丰富的选项,如Rescale、RotateFlip、亮度、对比度和伽马调整等。用户可以从各种图像格式中选择并保存为所需格式,同时允许调整保存参数,如JPEG的质量和EXR的设置。附带的源代码可供进一步学习和使用。
摘要由CSDN通过智能技术生成

PjConvertImageFormat,基本上将所有的FreeImage支持的文件格式都做上去了,也就是说你可以在35种图像格式之间相互转换,它们分别是:bmp/ico/jpeg/jpg/jng/koala/dds/exr/lbm/iff/mng/pbm/gif/j2k/pcd/pcx/pgm/png/hdr/jp2/ppm/ras/targa/tiff/g3/pfm/wbmp/psd/cut/xbm/xpm/sgi/pict图像格式之间相互转换的。

【网通】点击此处下载全部源程序              【电信、网通】点击此处下载全部源程序

【下载说明】
1、单击上面这个地址,打开下载页面。
2、点普通下载--等待30秒--点“下载”按钮--保存


上图为初始化界面。


上图为打开一幅BMP图片之后的效果。


上图为Rescale选项窗口。


上图为RotateFlip选项窗口。


上图为adjust brightness调整亮度窗口


上图为adjust contrast调整对比度窗口


上图为adjust gamma调整伽马曲线窗口


上图为bmp位图保存选项窗口。可以支持转换至1位、4位、8位、16位、24位和32位位图。


上图为jpeg图片保存选项窗口。可以选择jpeg编码的质量。


上图为exr图像文件的保存选项窗口。


上图png图像文件的保存选项窗口。


上图是tiff图像文件的保存选项窗口。


上图是关于对话框。

部分源程序如下:

/*
 * Created by SharpDevelop.
 * User: PJ
 * Date: 2012-9-18
 * Time: 10:06
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

using FreeImageAPI;

namespace ConvertImageFormat
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : Form
	{
		private FreeImageBitmap bitmap = null;
		
		public MainForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
			this.toolTip1.SetToolTip(this.rbtnBmp,"Windows or OS/2 Bitmap File");
			this.toolTip1.SetToolTip(this.rbtnIco,"Windows Icon");
			this.toolTip1.SetToolTip(this.rbtnJpeg,"Independent JPEG Group");
			this.toolTip1.SetToolTip(this.rbtnJng,"JPEG Network Graphics");
			this.toolTip1.SetToolTip(this.rbtnKoala,"Commodore 64 Koala format");
			this.toolTip1.SetToolTip(this.rbtnIff,"Amiga IFF");
			this.toolTip1.SetToolTip(this.rbtnLbm,"Amiga IFF");
			this.toolTip1.SetToolTip(this.rbtnMng,"Multiple Network Graphics");
			this.toolTip1.SetToolTip(this.rbtnPbm,"Portable Bitmap(ASCII)");
			this.toolTip1.SetToolTip(this.rbtnPbmraw,"Portable Bitmap(BINARY)");
			this.toolTip1.SetToolTip(this.rbtnPcd,"Kodak PhotoCD");
			this.toolTip1.SetToolTip(this.rbtnPcx,"Zsoft Paintbrush PCX bitmap format");
			this.toolTip1.SetToolTip(this.rbtnPgm,"Portable Graymap(ASCII)");
			this.toolTip1.SetToolTip(this.rbtnPgmraw,"Portable Graym
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值