Delphi 与 DirectX 之 DelphiX(60): TDIB.DoTrace();
2009-01-16 22:05
316 查看
本例效果图:
代码文件:
代码文件:
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.DoTrace(1); DXPaintBox1.Repaint; end; end.
相关文章推荐
- Delphi 与 DirectX 之 DelphiX(43): TDIB.DoInvert;
- Delphi 与 DirectX 之 DelphiX(57): TDIB.DoSplitlight();
- Delphi 与 DirectX 之 DelphiX(50): TDIB.DoLightness();
- Delphi 与 DirectX 之 DelphiX(44): TDIB.DoAddColorNoise();
- Delphi 与 DirectX 之 DelphiX(51): TDIB.DoDarkness();
- Delphi 与 DirectX 之 DelphiX(59): TDIB.DoSpotLight();
- Delphi 与 DirectX 之 DelphiX(45): TDIB.DoAddMonoNoise();
- Delphi 与 DirectX 之 DelphiX(52): TDIB.DoSaturation();
- Delphi 与 DirectX 之 DelphiX(61): TDIB.DoEmboss;
- Delphi 与 DirectX 之 DelphiX(67): TDIB.DoSmoothRotate();
- Delphi 与 DirectX 之 DelphiX(53): TDIB.DoSplitBlur();
- Delphi 与 DirectX 之 DelphiX(47): TDIB.DoContrast();
- Delphi 与 DirectX 之 DelphiX(56): TDIB.DoTwist();
- Delphi 与 DirectX 之 DelphiX(28): TDIB.Emboss;
- Delphi 与 DirectX 之 DelphiX(36): TDIB.Contrast();
- Delphi 与 DirectX 之 DelphiX(49): TDIB.DoGrayScale;
- Delphi 与 DirectX 之 DelphiX(66): TDIB.DoResample();
- Delphi 与 DirectX 之 DelphiX(84): TDIB.InitLight()、DrawLights();
- Delphi 与 DirectX 之 DelphiX(87): TDIB.DrawTransparent、DrawTranslucent、DrawAlpha();
- Delphi 与 DirectX 之 DelphiX(95): TDIB.x