Delphi 与 DirectX 之 DelphiX(52): TDIB.DoSaturation();
2009-01-16 19:48
393 查看
本例效果图:
![](http://images.cnblogs.com/cnblogs_com/del/171104/o_0911627.gif)
代码文件:
![](http://images.cnblogs.com/cnblogs_com/del/171104/o_0911627.gif)
代码文件:
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.DoSaturation(8); DXPaintBox1.Repaint; end; end.
相关文章推荐
- Delphi 与 DirectX 之 DelphiX(35): TDIB.Saturation();
- Delphi 与 DirectX 之 DelphiX(57): TDIB.DoSplitlight();
- Delphi 与 DirectX 之 DelphiX(43): TDIB.DoInvert;
- Delphi 与 DirectX 之 DelphiX(50): TDIB.DoLightness();
- Delphi 与 DirectX 之 DelphiX(59): TDIB.DoSpotLight();
- 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(53): TDIB.DoSplitBlur();
- Delphi 与 DirectX 之 DelphiX(61): TDIB.DoEmboss;
- Delphi 与 DirectX 之 DelphiX(67): TDIB.DoSmoothRotate();
- Delphi 与 DirectX 之 DelphiX(47): TDIB.DoContrast();
- Delphi 与 DirectX 之 DelphiX(56): TDIB.DoTwist();
- Delphi 与 DirectX 之 DelphiX(27): TDIB.Spray();
- Delphi 与 DirectX 之 DelphiX(42): TDIB.GaussianBlur();
- Delphi 与 DirectX 之 DelphiX(65): TDIB.DoBrightness();
- Delphi 与 DirectX 之 DelphiX(75): TDIB.FadeOut()、FadeIn();
- Delphi 与 DirectX 之 DelphiX(83): TDIB.FilterLine()、FilterRect();
- Delphi 与 DirectX 之 DelphiX(87): TDIB.DrawTransparent、DrawTranslucent、DrawAlpha();