Delphi 与 DirectX 之 DelphiX(79): TDIB.LinePolar();
2009-01-19 12:35
411 查看
本例效果图:
代码文件:
代码文件:
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DIB, StdCtrls; type TForm1 = class(TForm) DXPaintBox1: TDXPaintBox; procedure FormCreate(Sender: TObject); end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); const ImgPath1 = 'C:\Temp\DX.jpg'; var r: Real; begin DXPaintBox1.DIB.LoadFromFile(ImgPath1); DXPaintBox1.Width := DXPaintBox1.DIB.Width; DXPaintBox1.Height := DXPaintBox1.DIB.Height; r := 0; while r < 90 do begin DXPaintBox1.DIB.LinePolar(0, 0, r, DXPaintBox1.Width, clRed); r := r + 5; end; end; end.
相关文章推荐
- Delphi 与 DirectX 之 DelphiX(78): TDIB.AntialiasedLine();
- Delphi 与 DirectX 之 DelphiX(83): TDIB.FilterLine()、FilterRect();
- Delphi 与 DirectX 之 DelphiX(81): TDIB.ColoredLine();
- Delphi 与 DirectX 之 DelphiX(30): TDIB.AddGradiantNoise();
- Delphi 与 DirectX 之 DelphiX(38): TDIB.Filter();
- Delphi 与 DirectX 之 DelphiX(44): TDIB.DoAddColorNoise();
- Delphi 与 DirectX 之 DelphiX(51): TDIB.DoDarkness();
- Delphi 与 DirectX 之 DelphiX(59): TDIB.DoSpotLight();
- Delphi 与 DirectX 之 DelphiX(69): TDIB.Greyscale();
- Delphi 与 DirectX 之 DelphiX(77): TDIB.Distort();
- Delphi 与 DirectX 之 DelphiX(91): TDIB.DrawMono();
- Delphi 与 DirectX 之 DelphiX(25): TDIB.Blur();
- Delphi 与 DirectX 之 DelphiX(31): TDIB.Twist();
- Delphi 与 DirectX 之 DelphiX(39): TDIB.Sharpen();
- Delphi 与 DirectX 之 DelphiX(45): TDIB.DoAddMonoNoise();
- Delphi 与 DirectX 之 DelphiX(52): TDIB.DoSaturation();
- Delphi 与 DirectX 之 DelphiX(60): TDIB.DoTrace();
- Delphi 与 DirectX 之 DelphiX(70): TDIB.Mirror();
- Delphi 与 DirectX 之 DelphiX(32): TDIB.FishEye();
- Delphi 与 DirectX 之 DelphiX(46): TDIB.DoAntiAlias;