|
@@ -124,6 +124,7 @@ type
|
|
|
function SwapRedBlue: TCustomImageDifference;
|
|
|
function LinearNegative: TCustomImageDifference;
|
|
|
function Negative: TCustomImageDifference;
|
|
|
+ function ClearLayer: TCustomImageDifference;
|
|
|
function ComputeLayerOffsetDifference(AOffsetX, AOffsetY: integer): TCustomImageDifference;
|
|
|
function ComputeSelectionTransformDifference: TCustomImageDifference;
|
|
|
function ComputeLayerMatrixDifference(AIndex: integer; APrevMatrix, ANewMatrix: TAffineMatrix): TCustomImageDifference;
|
|
@@ -172,7 +173,7 @@ type
|
|
|
implementation
|
|
|
|
|
|
uses BGRAStreamLayers, UImageDiff, BGRALzpCommon, UFileSystem, BGRATransform,
|
|
|
- UResourceStrings;
|
|
|
+ UResourceStrings, LCVectorOriginal;
|
|
|
|
|
|
{ TImageState }
|
|
|
|
|
@@ -1039,6 +1040,18 @@ begin
|
|
|
result := AssignWithUndo(newImg, true, SelectedImageLayerIndex);
|
|
|
end;
|
|
|
|
|
|
+function TImageState.ClearLayer: TCustomImageDifference;
|
|
|
+begin
|
|
|
+ if (LayeredBitmap = nil) or SelectedImageLayer.Empty then
|
|
|
+ result := nil
|
|
|
+ else
|
|
|
+ begin
|
|
|
+ result := TReplaceLayerByCustomOriginalDifference.Create(self,
|
|
|
+ SelectedImageLayerIndex, true,
|
|
|
+ TVectorOriginal.Create);
|
|
|
+ end;
|
|
|
+end;
|
|
|
+
|
|
|
function TImageState.RotateCW: TCustomImageDifference;
|
|
|
begin
|
|
|
if LayeredBitmap = nil then
|