<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Hotcan</title><subtitle type="text">享受生活的点点滴滴</subtitle><id>http://feed.cnblogs.com/blog/u/4144/rss</id><updated>2011-04-24T02:00:35Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/4144/rss"/><entry><id>http://www.cnblogs.com/hotcan/archive/2009/04/22/1441680.html</id><title type="text">GDI+中常见的几个问题(11)</title><summary type="text">好久没有写了，真是灰常地惭愧。Heroes都已经放到第24集了，而我只写到第11集，实在是很惭愧。我在前面几章里面提到过ColorMatrix,可以将图像的色彩进行仿射变换。但是如果要对图像的色彩进行非线性变换的话，那就必须用到更强悍的API了。在Windows早期，有一套标准的色彩管理的API,叫做ICM 2.0 (Image Color Management 2.0)。在Windows Vis...</summary><published>2009-04-22T15:44:00Z</published><updated>2009-04-22T15:44:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2009/04/22/1441680.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2009/04/22/1441680.html"/><content type="text">好久没有写了，真是灰常地惭愧。Heroes都已经放到第24集了，而我只写到第11集，实在是很惭愧。我在前面几章里面提到过ColorMatrix,可以将图像的色彩进行仿射变换。但是如果要对图像的色彩进行非线性变换的话，那就必须用到更强悍的API了。在Windows早期，有一套标准的色彩管理的API,叫做ICM 2.0 (Image Color Management 2.0)。在Windows Vis...</content></entry><entry><id>http://www.cnblogs.com/hotcan/archive/2008/11/26/1341709.html</id><title type="text">GDI+中常见的几个问题(10)</title><summary type="text">10. Graphics的几个属性。今天我来讲讲Graphics在DrawImage里的几个的属性。Graphics是GDI+里面的大拿，可以用来画线，画矩形，甚至可以用来画各种各样的材质。通过不同的Pen,Brush来实现。具体的使用方法是所有想用GDI+的同学的基础，我就不详细讲了，具体可以参考MSDN:http://msdn.microsoft.com/en-us/library/haxsc...</summary><published>2008-11-26T10:40:00Z</published><updated>2008-11-26T10:40:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2008/11/26/1341709.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2008/11/26/1341709.html"/><content type="text">10. Graphics的几个属性。今天我来讲讲Graphics在DrawImage里的几个的属性。Graphics是GDI+里面的大拿，可以用来画线，画矩形，甚至可以用来画各种各样的材质。通过不同的Pen,Brush来实现。具体的使用方法是所有想用GDI+的同学的基础，我就不详细讲了，具体可以参考MSDN:http://msdn.microsoft.com/en-us/library/haxsc...</content></entry><entry><id>http://www.cnblogs.com/hotcan/archive/2008/11/20/1337700.html</id><title type="text">GDI+中常见的几个问题(9) </title><summary type="text">昨天晚上看了Heroes第9集，Eclipse又要来了，激动中。今天来讲讲上个星期遗留下来的东西：ColorMatrix。9. Color Matrix图像的本质是什么？对不同的人来说这是不同的东西。在计算机的世界中，啥东西都是数据，图像也是一种数据。从自然界的光变成计算机的数据，需要通过采样和量化的处理。图像在计算机中，其实是一个二维数组，从数学上来说，这其实是一个矩阵。图像中的每一个点都是个四...</summary><published>2008-11-20T07:15:00Z</published><updated>2008-11-20T07:15:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2008/11/20/1337700.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2008/11/20/1337700.html"/><content type="text">昨天晚上看了Heroes第9集，Eclipse又要来了，激动中。今天来讲讲上个星期遗留下来的东西：ColorMatrix。9. Color Matrix图像的本质是什么？对不同的人来说这是不同的东西。在计算机的世界中，啥东西都是数据，图像也是一种数据。从自然界的光变成计算机的数据，需要通过采样和量化的处理。图像在计算机中，其实是一个二维数组，从数学上来说，这其实是一个矩阵。图像中的每一个点都是个四...</content></entry><entry><id>http://www.cnblogs.com/hotcan/archive/2008/11/14/1333691.html</id><title type="text">GDI+中常见的几个问题(8) </title><summary type="text">哈哈，这个星期Heroes第八集终于出来了，我继续顺着上一节外传讲下去，修改颜色怎么做。8.1 使用原始的方法修改图像的RGB以及色调，饱和度和亮度最简单的办法，很容易，就是用之前的LockBits，然后直接修改R,G,B的数值，具体的就不多说了。在GDI+里面，Color有3个方法，分别是GetHue(), GetSaturation(), GetBrightness()。它是图像的色调，饱和度...</summary><published>2008-11-14T08:24:00Z</published><updated>2008-11-14T08:24:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2008/11/14/1333691.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2008/11/14/1333691.html"/><content type="text">哈哈，这个星期Heroes第八集终于出来了，我继续顺着上一节外传讲下去，修改颜色怎么做。8.1 使用原始的方法修改图像的RGB以及色调，饱和度和亮度最简单的办法，很容易，就是用之前的LockBits，然后直接修改R,G,B的数值，具体的就不多说了。在GDI+里面，Color有3个方法，分别是GetHue(), GetSaturation(), GetBrightness()。它是图像的色调，饱和度...</content></entry><entry><id>http://www.cnblogs.com/hotcan/archive/2008/11/07/1328922.html</id><title type="text">GDI+中常见的几个问题(8.外传1)</title><summary type="text">8. 颜色修正我最近一直在颜色空间中纠结，前面讲的透明不透明只是一种特殊的颜色。今天我准备要讲的是真正的修正颜色。我们使用的数码相机有不同的型号，感光的CCD性能也是不一样的，再加上天气或者周围光线的原因，我们排出来的照片可能会偏色。此外，为了做一些特殊处理，可能需要将照片中某一个特殊的区域颜色进行修正。比如脸色可以变得更好一点，或者头发更黑一点等等。这个Topic很大，我会花好几个星期来讲这些内...</summary><published>2008-11-07T07:33:00Z</published><updated>2008-11-07T07:33:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2008/11/07/1328922.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2008/11/07/1328922.html"/><content type="text">8. 颜色修正我最近一直在颜色空间中纠结，前面讲的透明不透明只是一种特殊的颜色。今天我准备要讲的是真正的修正颜色。我们使用的数码相机有不同的型号，感光的CCD性能也是不一样的，再加上天气或者周围光线的原因，我们排出来的照片可能会偏色。此外，为了做一些特殊处理，可能需要将照片中某一个特殊的区域颜色进行修正。比如脸色可以变得更好一点，或者头发更黑一点等等。这个Topic很大，我会花好几个星期来讲这些内...</content></entry><entry><id>http://www.cnblogs.com/hotcan/archive/2008/10/31/1323689.html</id><title type="text">GDI+中常见的几个问题(7)</title><summary type="text">7. 多帧图像为了赶上英雄第三季的播放日程，我决定一个星期出一集。在第七集Heroes里面，Peter的功能都被他老爸吸收掉了。所以我的这个系列的第七集来讲讲GDI+没完全实现的一部分功能。多帧图像是指在一幅图像中有多个帧，支持多帧图像的格式不多，只有TIFF和GIF。其他格式都不能作为多帧图像存储。其中TIFF可以支持很多页，GIF动画也支持多帧。使用GDI+可以生成多帧TIFF,却没办法实现G...</summary><published>2008-10-31T06:51:00Z</published><updated>2008-10-31T06:51:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2008/10/31/1323689.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2008/10/31/1323689.html"/><content type="text">7. 多帧图像为了赶上英雄第三季的播放日程，我决定一个星期出一集。在第七集Heroes里面，Peter的功能都被他老爸吸收掉了。所以我的这个系列的第七集来讲讲GDI+没完全实现的一部分功能。多帧图像是指在一幅图像中有多个帧，支持多帧图像的格式不多，只有TIFF和GIF。其他格式都不能作为多帧图像存储。其中TIFF可以支持很多页，GIF动画也支持多帧。使用GDI+可以生成多帧TIFF,却没办法实现G...</content></entry><entry><id>http://www.cnblogs.com/hotcan/archive/2008/10/29/1322360.html</id><title type="text">GDI+中常见的几个问题(6) </title><summary type="text">6.2 GIFGIF的全称是图像交换格式Graphics Interchange Format，是CompuServe公司在1987年创建并使用的。这种格式使用8位索引值来表达一个像素，也就是说1个像素1个byte，最多可以表示256种颜色。它使用LZW无损压缩算法来对图像进行压缩，之后这家公司又和几家其他的公司发明了PNG文件格式，并被更广泛地应用在Web以及其他领域。GIF支持动画，可以保存数...</summary><published>2008-10-29T10:21:00Z</published><updated>2008-10-29T10:21:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2008/10/29/1322360.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2008/10/29/1322360.html"/><content type="text">6.2 GIFGIF的全称是图像交换格式Graphics Interchange Format，是CompuServe公司在1987年创建并使用的。这种格式使用8位索引值来表达一个像素，也就是说1个像素1个byte，最多可以表示256种颜色。它使用LZW无损压缩算法来对图像进行压缩，之后这家公司又和几家其他的公司发明了PNG文件格式，并被更广泛地应用在Web以及其他领域。GIF支持动画，可以保存数...</content></entry><entry><id>http://www.cnblogs.com/hotcan/archive/2008/10/29/1322217.html</id><title type="text">GDI+中常见的几个问题(5) </title><summary type="text">6.透明，半透明和不透明这是个大题目。在WinForm/WPF里面我们经常会看到一些关于透明的属性，比如Backcolor里面可以选择Transparant, Form里面有一个叫Opacity的属性。都是和透明以及透明度相关的。在其实是在GDI+应用层上的一些东西，在这里我就不讲了。主要从更基本的地方讲起，其中还包括两块完全不同的内容。6.1 Alpha我们在上一讲中提到了PixelFormat...</summary><published>2008-10-29T08:16:00Z</published><updated>2008-10-29T08:16:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2008/10/29/1322217.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2008/10/29/1322217.html"/><content type="text">6.透明，半透明和不透明这是个大题目。在WinForm/WPF里面我们经常会看到一些关于透明的属性，比如Backcolor里面可以选择Transparant, Form里面有一个叫Opacity的属性。都是和透明以及透明度相关的。在其实是在GDI+应用层上的一些东西，在这里我就不讲了。主要从更基本的地方讲起，其中还包括两块完全不同的内容。6.1 Alpha我们在上一讲中提到了PixelFormat...</content></entry><entry><id>http://www.cnblogs.com/hotcan/archive/2008/10/23/1317752.html</id><title type="text">GDI+中常见的几个问题(4) </title><summary type="text">5.读图是快了，处理怎么还是慢？GDI+的Bitmap类提供了两个罪恶的函数GetPixel, SetPixel，用来获取某个像素点的颜色值。这个2个函数如果只调用一次两次也就罢了，万一我想把整张图片加红一点，用下面的代码，我估计你等到黄花菜都凉了，还没有算完呢。 看看下面的代码是怎么写的。[代码]代码逻辑很清楚，第1到第5行，写得很好，用了我们在前几节里面的方法，读图速度飞快且不锁文件。当然如果...</summary><published>2008-10-23T03:51:00Z</published><updated>2008-10-23T03:51:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2008/10/23/1317752.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2008/10/23/1317752.html"/><content type="text">5.读图是快了，处理怎么还是慢？GDI+的Bitmap类提供了两个罪恶的函数GetPixel, SetPixel，用来获取某个像素点的颜色值。这个2个函数如果只调用一次两次也就罢了，万一我想把整张图片加红一点，用下面的代码，我估计你等到黄花菜都凉了，还没有算完呢。 看看下面的代码是怎么写的。[代码]代码逻辑很清楚，第1到第5行，写得很好，用了我们在前几节里面的方法，读图速度飞快且不锁文件。当然如果...</content></entry><entry><id>http://www.cnblogs.com/hotcan/archive/2008/10/21/1316154.html</id><title type="text">GDI+中常见的几个问题(3) </title><summary type="text">4. 为啥读个图那么慢？一般来说，读图可以用以下几种方法：Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;1publicstaticImageFromFile(stringfilename);2publicstaticImageFromFile(str...</summary><published>2008-10-21T10:05:00Z</published><updated>2008-10-21T10:05:00Z</updated><author><name>Hotcan</name><uri>http://www.cnblogs.com/hotcan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hotcan/archive/2008/10/21/1316154.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hotcan/archive/2008/10/21/1316154.html"/><content type="text">4. 为啥读个图那么慢？一般来说，读图可以用以下几种方法：Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;1publicstaticImageFromFile(stringfilename);2publicstaticImageFromFile(str...</content></entry></feed>
