摘要:
IntroductionThis is my sixth article in C#. I got impressed with a similar article, so I tried this. OverviewThe purpose of the article is to be able to build a class that allows any C# programmer to perform image processing functionality. The reason we are doing it in C# is that it very flexible fo 阅读全文
posted @ 2011-08-02 09:55
carekee
阅读(2458)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Drawing.Drawing2D; namespace Silent.Web.Controllers.Common { /**//// <summary> /// ASPJpegBase /// Author : Jolly /// </summary> public class ASPJpegBase : ID 阅读全文
posted @ 2011-08-02 09:52
carekee
阅读(1079)
评论(0)
推荐(1)
摘要:
在印刷排版中,“point”是一个绝对的单位,它等于 1/72 英寸,可以用尺子丈量的,物理的英寸。但在 CSS 中 pt 的含义却非如此,例如我们指定一个字体是 9pt,我们会以为按照 CSS 规范,它等于: 9 * 1/72 = 1/8 inch 这是一个误解,因为我们的显示器被分割为了一个个的像素,单个像素只能有一种颜色 (为了简化,这里暂不讨论次像素反锯齿技术),要在屏幕上显示,必须先把以 pt 为单位的长度转换为以像素为单位的长度,这个转换的媒介,就是 DPI (事实上,这里的所谓的 DPI,是操作系统和浏览器中使用的术语,即为 PPI, pixels per inch,和扫描仪、打 阅读全文
posted @ 2011-08-02 09:36
carekee
阅读(38279)
评论(0)
推荐(3)
摘要:
英文字体的1磅,相当于1/72 英寸,约等于1/2.8mm。12PT的字打印出来约为4.2mm。网页中12px的字才相当于12像素。虽然 四号=(14/72)*96=18.6px 更接近 19px,但是因为 18px 是点阵,所以系统还是优先显示点阵字号的。换句话说:四号=18px中文字号VS英文字号(磅)VS像素值的对应关系:八号=5磅(5pt) ==(5/72)*96=6.67 =6px七号=5.5磅 ==(5.5/72)*96=7.3 =7px小六=6.5磅 ==(6.5/72)*96=8.67 =8px六号=7.5磅 ==(7.5/72)*96=10px小五=9磅 ==(9/72)*9 阅读全文
posted @ 2011-08-02 09:35
carekee
阅读(13407)
评论(0)
推荐(0)
浙公网安备 33010602011771号