Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corner has jaggies when fill background #18

Open
JohnDWen opened this issue Oct 9, 2020 · 2 comments
Open

Corner has jaggies when fill background #18

JohnDWen opened this issue Oct 9, 2020 · 2 comments

Comments

@JohnDWen
Copy link

JohnDWen commented Oct 9, 2020

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

@ericwangjp
Copy link

the same question ,how did you solve it ?

@Clors1997
Copy link

`
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");
                });
            }
        }
    }
});

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants