Explorar o código

make sure export init to transparent black

Johann ELSASS %!s(int64=4) %!d(string=hai) anos
pai
achega
ef676de1b7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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,