Delphi 与 DirectX 之 DelphiX(53): TDIB.DoSplitBlur();
2009-01-16 19:51
375 查看
本例效果图:
代码文件:
代码文件:
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DIB, StdCtrls; type TForm1 = class(TForm) DXPaintBox1: TDXPaintBox; Button1: TButton; Button2: TButton; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); const ImgPath1 = 'C:\Temp\DX.jpg'; begin DXPaintBox1.DIB.LoadFromFile(ImgPath1); DXPaintBox1.Width := DXPaintBox1.DIB.Width; DXPaintBox1.Height := DXPaintBox1.DIB.Height; DXPaintBox1.Repaint; end; procedure TForm1.Button2Click(Sender: TObject); begin DXPaintBox1.DIB.DoSplitBlur(8); DXPaintBox1.Repaint; end; end.
相关文章推荐
- Delphi 与 DirectX 之 DelphiX(57): TDIB.DoSplitlight();
- Delphi 与 DirectX 之 DelphiX(44): TDIB.DoAddColorNoise();
- Delphi 与 DirectX 之 DelphiX(51): TDIB.DoDarkness();
- Delphi 与 DirectX 之 DelphiX(60): TDIB.DoTrace();
- Delphi 与 DirectX 之 DelphiX(45): TDIB.DoAddMonoNoise();
- Delphi 与 DirectX 之 DelphiX(52): TDIB.DoSaturation();
- Delphi 与 DirectX 之 DelphiX(61): TDIB.DoEmboss;
- Delphi 与 DirectX 之 DelphiX(25): TDIB.Blur();
- Delphi 与 DirectX 之 DelphiX(54): TDIB.DoGaussianBlur();
- Delphi 与 DirectX 之 DelphiX(47): TDIB.DoContrast();
- Delphi 与 DirectX 之 DelphiX(56): TDIB.DoTwist();
- Delphi 与 DirectX 之 DelphiX(67): TDIB.DoSmoothRotate();
- Delphi 与 DirectX 之 DelphiX(43): TDIB.DoInvert;
- Delphi 与 DirectX 之 DelphiX(50): TDIB.DoLightness();
- Delphi 与 DirectX 之 DelphiX(59): TDIB.DoSpotLight();
- Delphi 与 DirectX 之 DelphiX(30): TDIB.AddGradiantNoise();
- Delphi 与 DirectX 之 DelphiX(38): TDIB.Filter();
- Delphi 与 DirectX 之 DelphiX(74): TDIB.EncryptDecrypt();
- Delphi 与 DirectX 之 DelphiX(79): TDIB.LinePolar();
- Delphi 与 DirectX 之 DelphiX(31): TDIB.Twist();