end; else begin StX:=CnX; StY:=CnY; end; end;
case (DitherMode) of dmNearest: Ditherer := TDitherEngine.Create(Bitmap.Width, ColorLookup); dmFloydSteinberg: Ditherer := TFloydSteinbergDitherer.Create(Bitmap.Width, ColorLookup); dmStucki: Ditherer := TStuckiDitherer.Create(Bitmap.Width, ColorLookup); dmSierra: Ditherer := TSierraDitherer.Create(Bitmap.Width, ColorLookup); dmJaJuNI: Ditherer := TJaJuNIDitherer.Create(Bitmap.Width, ColorLookup); dmSteveArche: Ditherer := TSteveArcheDitherer.Create(Bitmap.Width, ColorLookup); dmBurkes: Ditherer := TBurkesDitherer.Create(Bitmap.Width, ColorLookup); else exit; end;
返回
4、命名规则
1、文件名称: u模块名称;见名知意 2、控件名称: 功能_控件缩写;见名知意 3、变量 : 尽量不用缩写,尽量用名词;见名知意 4、方法与过程:尽量不用缩写,尽量用动宾词组;见名知意 5、常见的惯例 类名以T打头 (Type之意) 类的私有数据域以F打头(Field之意) 对数据的存取操作分别以Set,Get打头 事件属性以On打头
(完)
上一页 [1] [2] [3] [4] |