資源簡介
轉換JP2文件為JPG,壓縮包內包含源代碼,具體的JP2文件請自行提供

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?FreeImageAPI;
using?System.IO;
namespace?JP2File
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????//
????????????FIBITMAP?dib?=?FreeImage.LoadEx(“UNI0018.jp2“);
????????????//save?the?image?out?to?disk????
????????????FreeImage.Save(FREE_IMAGE_FORMAT.FIF_JPEG?dib?“test.jpg“?FREE_IMAGE_SAVE_FLAGS.JPEG_QUALITYNORMAL);
????????????//or?even?turn?it?into?a?normal?Bitmap?for?later?use
????????????Bitmap?bitmap?=?FreeImage.GetBitmap(dib);
????????????//
????????????byte[]?myByte?=?new?byte[10];
????????????MemoryStream?theMemStream?=?new?MemoryStream();
????????????theMemStream.Write(myByte?0?myByte.Length);
????????????FreeImageBitmap?fbm?=?FreeImageBitmap.FromStream(theMemStream);
????????????fbm.Save(“text.jpg“?FREE_IMAGE_FORMAT.FIF_JPEG);
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????144??2015-12-30?15:26??JP2File\app.config
?????文件????5647872??2015-03-15?22:48??JP2File\bin\Debug\FreeImage.dll
?????文件??????57727??2015-03-04?09:17??JP2File\bin\Debug\FreeImage.h
?????文件??????67932??2015-03-15?22:48??JP2File\bin\Debug\FreeImage.lib
?????文件?????215552??2015-12-30?16:24??JP2File\bin\Debug\FreeImageNET.dll
?????文件???????8704??2015-12-30?16:25??JP2File\bin\Debug\JP2File.exe
?????文件????????144??2015-12-30?15:26??JP2File\bin\Debug\JP2File.exe.config
?????文件??????26112??2015-12-30?16:25??JP2File\bin\Debug\JP2File.pdb
?????文件??????11600??2015-12-30?16:25??JP2File\bin\Debug\JP2File.vshost.exe
?????文件????????144??2015-12-30?15:26??JP2File\bin\Debug\JP2File.vshost.exe.config
?????文件????????490??2010-03-17?22:39??JP2File\bin\Debug\JP2File.vshost.exe.manifest
?????文件?????235923??2015-12-30?15:10??JP2File\bin\Debug\UNI0018.jp2
?????文件?????141967??2015-12-30?16:25??JP2File\bin\Debug\UNI0018.jpg
?????文件????5647872??2015-03-15?22:48??JP2File\bin\Debug\x32\FreeImage.dll
?????文件??????57727??2015-03-04?09:17??JP2File\bin\Debug\x32\FreeImage.h
?????文件??????67932??2015-03-15?22:48??JP2File\bin\Debug\x32\FreeImage.lib
?????文件????6402560??2015-03-15?22:53??JP2File\bin\Debug\x64\FreeImage.dll
?????文件??????57727??2015-03-04?09:17??JP2File\bin\Debug\x64\FreeImage.h
?????文件??????63592??2015-03-15?22:52??JP2File\bin\Debug\x64\FreeImage.lib
?????文件???????1165??2015-12-30?16:21??JP2File\Form1.cs
?????文件???????2021??2015-12-30?15:26??JP2File\Form1.Designer.cs
?????文件???????5817??2015-12-30?15:26??JP2File\Form1.resx
?????文件???????4074??2015-12-30?16:08??JP2File\JP2File.csproj
?????文件????????227??2015-12-30?15:26??JP2File\JP2File.csproj.user
?????文件???????2164??2015-12-30?15:08??JP2File\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6412??2015-12-30?16:25??JP2File\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????352??2015-12-30?16:08??JP2File\obj\x86\Debug\GenerateResource.read.1.tlog
?????文件????????802??2015-12-30?16:08??JP2File\obj\x86\Debug\GenerateResource.write.1.tlog
?????文件???????1213??2015-12-30?16:25??JP2File\obj\x86\Debug\JP2File.csproj.FileListAbsolute.txt
?????文件???????8704??2015-12-30?16:25??JP2File\obj\x86\Debug\JP2File.exe
............此處省略24個文件信息
- 上一篇:使用VHDL實現數字鐘.zip
- 下一篇:線性系統理論PPT
評論
共有 條評論