shadow4android icon indicating copy to clipboard operation
shadow4android copied to clipboard

Corner has jaggies when fill background

Open JohnDWen opened this issue 5 years ago • 2 comments

shadow_11454 9 Corner has something like jaggies when fill it with background. This problem shows recently.

JohnDWen avatar Oct 09 '20 03:10 JohnDWen

the same question ,how did you solve it ?

ericwangjp avatar Mar 13 '21 08:03 ericwangjp

` function exportAsPng3() { var date = new Date(); bootbox.prompt({ title: "Enter output filename (without '.9.png')", value: "shadow_" + date.getHours() + "" + date.getMinutes() + "" + date.getSeconds(), callback: function(result) { if (result !== null && result !== "") { //Show ninepatches If hidden when exporting var hideNinepatchesTmp = true; var showContentAreaTmp = false; if (hideNinepatches || showContentArea) { hideNinepatchesTmp = hideNinepatches; showContentAreaTmp = showContentArea; showContentArea = false; hideNinepatches = true; //清除patches redraw(); }

            //Use BlobHD If supported
            if (canvas.toBlobHD) {
                canvas.toBlobHD(function (blob) {
                    saveAs(blob, result + ".9.png");
                });
            } else {
                canvas.toBlob(function (blob) {
                    saveAs(blob, result + ".9.png");
                });
            }
        }
    }
});

} `

Clors1997 avatar Oct 02 '21 07:10 Clors1997