本例效果图:



代码文件:


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.Distort(DXPaintBox1.DIB,dtFast,DXPaintBox1.Width div 2,DXPaintBox1.Height div 2,90,6.5);DXPaintBox1.Repaint;
end;end.

Delphi 与 DirectX 之 DelphiX(77): TDIB.Distort();相关推荐

  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(52): TDIB.DoSaturation();

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

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

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

  9. Delphi 与 DirectX 之 DelphiX(72): TDIB.SephiaEffect();

    为什么80%的码农都做不了架构师?>>>    本例效果图: 代码文件: unit Unit1;interfaceusesWindows, Messages, SysUtils, V ...

最新文章

  1. Azure PowerShell (6) 设置单个Virtual Machine Endpoint
  2. mysql 1z0_MySQL 8 OCP(1Z0-908)认证考试题库原题(第10题)
  3. weka: exhaustive search
  4. python截图识别文字_用百度ocr+微信截图实现文字识别
  5. JavaScript数组方法终极指南-地图
  6. 网站后台输入密码错误
  7. el-tree多选获取选中的节点ID
  8. 5、最长回文子串(python)
  9. OpenCV图像模糊处理
  10. java贪吃蛇难度设计_Java贪吃蛇应用的设计与实现
  11. ElasticSearch介绍ES客户端IK分词器Kibana安装
  12. stm32硬件消抖_STM32 软件按键消抖
  13. cocos 层级渲染与管理
  14. psd文件图层不多却很大很卡
  15. 【web素材】11—15套免费网站后台管理模板
  16. JavaScript中会打印出undefined的情况汇总
  17. 史上最详细bitbucket入门手册,手把手操作指南
  18. excel熵值法计算权重_一文讲清楚分散投资(下)——让很多人顿悟的“熵增定律”在投资中的应用...
  19. 【FFT-类字符串匹配】LOJ6388 [THUPC2018]赛艇 / Citing
  20. yii2.0域名目录绑定(二级域名)以及url美化 url伪静态 Apache ,Ngnix和 IIS

热门文章

  1. brew 安装PHP的配置文件所在位置
  2. 关于ospf区域认证以及虚链路之间的配置问题
  3. C言语选择排序算法及代码
  4. HBase学习总结(2):HBase介绍及其基本操作
  5. java 日期和字符串互转,根据当天整天时间 得到当天最后一秒的日期时间
  6. POJ 2718 Smallest Difference 贪心构造
  7. android 启动其它apk
  8. 崇拜的Unix大牛,记录之。
  9. 转载 CreateWaitableTimer和SetWaitableTimer函数
  10. 阅面科技赵京雷:全面拥抱AI2.0时