Browse Source

make sure export init to transparent black

Johann ELSASS 4 years ago
parent
commit
ef676de1b7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lazpaint/image/uimageaction.pas

+ 1 - 0
lazpaint/image/uimageaction.pas

@@ -426,6 +426,7 @@ begin
     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,