本例效果图:



代码文件:


unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, DIB, StdCtrls;typeTForm1 = class(TForm)DXPaintBox1: TDXPaintBox;Button1: TButton;Button2: TButton;procedure Button1Click(Sender: TObject);procedure Button2Click(Sender: TObject);end;varForm1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
constImgPath1 = 'C:\Temp\DX.jpg';
beginDXPaintBox1.DIB.LoadFromFile(ImgPath1);DXPaintBox1.Width := DXPaintBox1.DIB.Width;DXPaintBox1.Height := DXPaintBox1.DIB.Height;DXPaintBox1.Repaint;
end;procedure TForm1.Button2Click(Sender: TObject);
beginDXPaintBox1.DIB.Sharpen(1);DXPaintBox1.Repaint;
end;end.

窗体文件:


object Form1: TForm1Left = 0Top = 0Caption = 'Form1'ClientHeight = 142ClientWidth = 226Color = clBtnFaceFont.Charset = DEFAULT_CHARSETFont.Color = clWindowTextFont.Height = -11Font.Name = 'Tahoma'Font.Style = []OldCreateOrder = FalsePixelsPerInch = 96TextHeight = 13object DXPaintBox1: TDXPaintBoxLeft = 8Top = 8Width = 81Height = 73AutoStretch = FalseCenter = FalseKeepAspect = FalseStretch = FalseViewWidth = 0ViewHeight = 0endobject Button1: TButtonLeft = 143Top = 78Width = 75Height = 25Caption = 'Button1'TabOrder = 0OnClick = Button1Clickendobject Button2: TButtonLeft = 143Top = 109Width = 75Height = 25Caption = 'Button2'TabOrder = 1OnClick = Button2Clickend
end

Delphi 与 DirectX 之 DelphiX(39): TDIB.Sharpen();相关推荐

  1. Delphi 与 DirectX 之 DelphiX(25): TDIB.Blur();

    DelphiX 的组件面板上, 第二个就是 TDXDIB; TDXDIB.DIB 是 TDXDIB 的唯一属性(其他是 TComponent 固有的); TDXDIB.DIB 属性是一个 TDIB 对 ...

  2. Delphi 与 DirectX 之 DelphiX(89): TDIB.DrawAlphaMask();

    本例效果图: 代码文件: unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Contr ...

  3. Delphi 与 DirectX 之 DelphiX(95): TDIB.x

    //让 TDIB 的这些特效烦透了: 多.还重复.又不完善; 还没有测试或测试失败的方法: procedure DrawShadow(SrcDIB: TDIB; X, Y, Width, Height ...

  4. Delphi 与 DirectX 之 DelphiX(33): TDIB.SmoothRotateWrap();

    本例效果图: 代码文件: unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Contr ...

  5. Delphi 与 DirectX 之 DelphiX(93): TDIB.DrawDarken();

    本例效果图: 代码文件: unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Contr ...

  6. Delphi 与 DirectX 之 DelphiX(83): TDIB.FilterLine()、FilterRect();

    本例效果图: 代码文件: unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Contr ...

  7. Delphi 与 DirectX 之 DelphiX(77): TDIB.Distort();

    本例效果图: 代码文件: unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Contr ...

  8. Delphi 与 DirectX 之 DelphiX(52): TDIB.DoSaturation();

    本例效果图: 代码文件: unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Contr ...

  9. Delphi 与 DirectX 之 DelphiX(35): TDIB.Saturation();

    本例效果图: 代码文件: unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Contr ...

最新文章

  1. 支持手机版网站的We7CMS
  2. cacti监控批量加,省时省力又省心。
  3. MCU,RTOS,物联网之间的关系。
  4. 工业以太网交换机的安装流程详解
  5. arrayQueue
  6. java bitset_Java BitSet and()方法与示例
  7. ContextLoaderListener的作用详解
  8. 推荐一款优雅的 Android 学习 App
  9. zmap扫描mysql_互联网扫描器 ZMap 完全手册
  10. Java实现图片任意角度旋转
  11. 毕业设计所用到的工具,需要了解的神器,不妨来看看,工具基本全了
  12. 使用sqliteman导出csv数据修改完并导入
  13. 一到十二月英文 音标 简写
  14. Vue单文件组件TypeScript写法
  15. directadmin php-fpm,centos7.5最新内核安装DirectAdmin面板
  16. Alink漫谈(二十二) :源码分析之聚类评估
  17. 如何写出一份优秀的简历和求职信?
  18. linux 内核usleep,linux 内核 usleep
  19. iPhone5越狱后经典插件个人推荐
  20. 权威认证 | 云和恩墨zData Light存储管理软件获H3C兼容认证

热门文章

  1. 绿茶影视内容站群-明王优化版吸粉视频站群-轻量级CMS站群
  2. 旅行线路定制主题响应式手机模板
  3. DWZMVC的探索系列——给列表穿上DWZ华丽的外衣
  4. Application.Goto 方法
  5. 20条.net编码习惯 【转】
  6. 用history api偷换浏览器历史记录
  7. html5游戏制作入门系列教程(五)
  8. Ajax Loading进度gif在线生成
  9. DNS服务器 安装部署 以及子域授权和转发
  10. CMake和Make——简介和对比