Changeset 522 for GraphicTest/Packages/Graphics32/GR32_Filters.pas
- Timestamp:
- Apr 17, 2019, 10:42:18 AM (5 years ago)
- Location:
- GraphicTest/Packages/Graphics32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/Packages/Graphics32
-
Property svn:ignore
set to
lib
-
Property svn:ignore
set to
-
GraphicTest/Packages/Graphics32/GR32_Filters.pas
r450 r522 50 50 Windows, 51 51 {$ENDIF} 52 Classes, SysUtils, GR32 , GR32_Blend, GR32_System, GR32_Bindings;52 Classes, SysUtils, GR32; 53 53 54 54 { Basic processing } … … 83 83 84 84 uses 85 {$IFDEF COMPILERXE2_UP}Types, {$ENDIF} GR32_System, GR32_Bindings, 85 86 GR32_Lowlevel; 86 87 … … 89 90 SEmptySource = 'The source is nil'; 90 91 SEmptyDestination = 'Destination is nil'; 91 SNoInPlace = 'In-place operation is not supported here';92 92 93 93 type … … 115 115 (@@LogicalMaskLineOr) 116 116 ); 117 117 118 118 LOGICAL_MASK_LINE_EX: array[TLogicalOperator] of ^TLogicalMaskLineEx = ( 119 119 (@@LogicalMaskLineXorEx), … … 181 181 with Dst do 182 182 begin 183 IntersectRect(SrcRect, SrcRect, Src.BoundsRect);183 GR32.IntersectRect(SrcRect, SrcRect, Src.BoundsRect); 184 184 if (SrcRect.Right < SrcRect.Left) or (SrcRect.Bottom < SrcRect.Top) then Exit; 185 185 … … 187 187 DstY := Clamp(DstY, 0, Height); 188 188 189 DstRect.TopLeft := Point(DstX, DstY);189 DstRect.TopLeft := GR32.Point(DstX, DstY); 190 190 DstRect.Right := DstX + SrcRect.Right - SrcRect.Left; 191 191 DstRect.Bottom := DstY + SrcRect.Bottom - SrcRect.Top; 192 192 193 IntersectRect(DstRect, DstRect, BoundsRect);194 IntersectRect(DstRect, DstRect, ClipRect);193 GR32.IntersectRect(DstRect, DstRect, BoundsRect); 194 GR32.IntersectRect(DstRect, DstRect, ClipRect); 195 195 if (DstRect.Right < DstRect.Left) or (DstRect.Bottom < DstRect.Top) then Exit; 196 196 … … 480 480 with Dst do 481 481 begin 482 IntersectRect(SrcRect, SrcRect, Src.BoundsRect);482 GR32.IntersectRect(SrcRect, SrcRect, Src.BoundsRect); 483 483 if (SrcRect.Right < SrcRect.Left) or (SrcRect.Bottom < SrcRect.Top) then Exit; 484 484 … … 486 486 DstY := Clamp(DstY, 0, Height); 487 487 488 DstRect.TopLeft := Point(DstX, DstY);488 DstRect.TopLeft := GR32.Point(DstX, DstY); 489 489 DstRect.Right := DstX + SrcRect.Right - SrcRect.Left; 490 490 DstRect.Bottom := DstY + SrcRect.Bottom - SrcRect.Top; 491 491 492 IntersectRect(DstRect, DstRect, Dst.BoundsRect);493 IntersectRect(DstRect, DstRect, Dst.ClipRect);494 if (DstRect.Right < DstRect.Left) or (DstRect.Bottom < DstRect.Top) then Exit;495 492 GR32.IntersectRect(DstRect, DstRect, Dst.BoundsRect); 493 GR32.IntersectRect(DstRect, DstRect, Dst.ClipRect); 494 if (DstRect.Right < DstRect.Left) or (DstRect.Bottom < DstRect.Top) then 495 Exit; 496 496 497 497 if not MeasuringMode then … … 530 530 with ABitmap do 531 531 begin 532 IntersectRect(ARect, ARect, BoundsRect);533 IntersectRect(ARect, ARect, ClipRect);532 GR32.IntersectRect(ARect, ARect, BoundsRect); 533 GR32.IntersectRect(ARect, ARect, ClipRect); 534 534 if (ARect.Right < ARect.Left) or (ARect.Bottom < ARect.Top) then Exit; 535 535
Note:
See TracChangeset
for help on using the changeset viewer.