Changeset 521 for GraphicTest/Packages/bgrabitmap/bgrafilterblur.pas
- Timestamp:
- Apr 17, 2019, 12:58:41 AM (5 years ago)
- Location:
- GraphicTest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest
- Property svn:ignore
-
old new 8 8 GraphicTest.lps 9 9 GraphicTest.dbg 10 heaptrclog.trc
-
- Property svn:ignore
-
GraphicTest/Packages/bgrabitmap/bgrafilterblur.pas
r494 r521 32 32 public 33 33 constructor Create(bmp: TBGRACustomBitmap; ABounds: TRect; radius: single; 34 blurType: TRadialBlurType); 34 blurType: TRadialBlurType); overload; 35 35 constructor Create(bmp: TBGRACustomBitmap; ABounds: TRect; radiusX,radiusY: single; 36 blurType: TRadialBlurType); 36 blurType: TRadialBlurType); overload; 37 37 protected 38 38 procedure DoExecute; override; … … 57 57 58 58 procedure FilterBlur(bmp: TBGRACustomBitmap; ABounds: TRect; 59 blurMask: TBGRACustomBitmap; ADestination: TBGRACustomBitmap; ACheckShouldStop: TCheckShouldStopFunc); forward; 59 blurMask: TBGRACustomBitmap; ADestination: TBGRACustomBitmap; ACheckShouldStop: TCheckShouldStopFunc); forward; overload; 60 60 procedure FilterBlurMotion(bmp: TBGRACustomBitmap; ABounds: TRect; distance: single; 61 angle: single; oriented: boolean; ADestination: TBGRACustomBitmap; ACheckShouldStop: TCheckShouldStopFunc); forward; 61 angle: single; oriented: boolean; ADestination: TBGRACustomBitmap; ACheckShouldStop: TCheckShouldStopFunc); forward; overload; 62 62 procedure FilterBlurRadial(bmp: TBGRACustomBitmap; ABounds: TRect; radiusX,radiusY: single; 63 blurType: TRadialBlurType; ADestination: TBGRACustomBitmap; ACheckShouldStop: TCheckShouldStopFunc); forward; 63 blurType: TRadialBlurType; ADestination: TBGRACustomBitmap; ACheckShouldStop: TCheckShouldStopFunc); forward; overload; 64 64 65 65 type … … 71 71 FRadiusX,FRadiusY: single; 72 72 public 73 constructor Create(bmp: TBGRACustomBitmap; ABounds: TRect; radius: single); 74 constructor Create(bmp: TBGRACustomBitmap; ABounds: TRect; radiusX,radiusY: single); 73 constructor Create(bmp: TBGRACustomBitmap; ABounds: TRect; radius: single); overload; 74 constructor Create(bmp: TBGRACustomBitmap; ABounds: TRect; radiusX,radiusY: single); overload; 75 75 protected 76 76 {$IFNDEF CPU64} … … 310 310 311 311 procedure FilterBlurRadial(bmp: TBGRACustomBitmap; ABounds: TRect; radius: single; 312 blurType: TRadialBlurType; ADestination: TBGRACustomBitmap; ACheckShouldStop: TCheckShouldStopFunc); 312 blurType: TRadialBlurType; ADestination: TBGRACustomBitmap; ACheckShouldStop: TCheckShouldStopFunc); overload; 313 313 begin 314 314 if radius = 0 then … … 347 347 end; 348 348 349 function FilterBlurRadial(bmp: TBGRACustomBitmap; radius: single; 350 blurType: TRadialBlurType): TBGRACustomBitmap; 349 function FilterBlurRadial(bmp: TBGRACustomBitmap; radius: single; blurType: TRadialBlurType): TBGRACustomBitmap; overload; 351 350 begin 352 351 if blurType = rbBox then … … 361 360 362 361 function FilterBlurRadial(bmp: TBGRACustomBitmap; radiusX: single; 363 radiusY: single; blurType: TRadialBlurType): TBGRACustomBitmap; 362 radiusY: single; blurType: TRadialBlurType): TBGRACustomBitmap; overload; 364 363 begin 365 364 if blurType = rbBox then … … 374 373 375 374 function CreateRadialBlurTask(ABmp: TBGRACustomBitmap; ABounds: TRect; ARadius: single; 376 ABlurType: TRadialBlurType): TFilterTask; 375 ABlurType: TRadialBlurType): TFilterTask; overload; 377 376 begin 378 377 if ABlurType = rbBox then … … 383 382 384 383 function CreateRadialBlurTask(ABmp: TBGRACustomBitmap; ABounds: TRect; 385 ARadiusX, ARadiusY: single; ABlurType: TRadialBlurType): TFilterTask; 384 ARadiusX, ARadiusY: single; ABlurType: TRadialBlurType): TFilterTask; overload; 386 385 begin 387 386 if ABlurType = rbBox then … … 432 431 433 432 function FilterBlurMotion(bmp: TBGRACustomBitmap; distance: single; 434 angle: single; oriented: boolean): TBGRACustomBitmap; 433 angle: single; oriented: boolean): TBGRACustomBitmap; overload; 435 434 begin 436 435 result := bmp.NewBitmap(bmp.Width,bmp.Height); … … 463 462 end; 464 463 465 function FilterBlur(bmp: TBGRACustomBitmap; blurMask: TBGRACustomBitmap): TBGRACustomBitmap; 464 function FilterBlur(bmp: TBGRACustomBitmap; blurMask: TBGRACustomBitmap): TBGRACustomBitmap; overload; 466 465 begin 467 466 result := bmp.NewBitmap(bmp.Width,bmp.Height);
Note:
See TracChangeset
for help on using the changeset viewer.