Skip to content

Commit

Permalink
make sure export init to transparent black
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann ELSASS committed Dec 2, 2020
1 parent 4fafbbf commit ef676de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lazpaint/image/uimageaction.pas
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ function TImageActions.ScriptLayerSaveAs(AVars: TVariableSet): TScriptResult;
end else
begin
layerCopy := TBGRABitmap.Create(Image.Width, Image.Height);
layerCopy.FillTransparent;
writer := CreateBGRAImageWriter(imgFormat, true);
try
layerCopy.PutImage(Image.LayerOffset[layerIdx].x, Image.LayerOffset[layerIdx].y,
Expand Down

0 comments on commit ef676de

Please sign in to comment.