Resize

Resize tool allows resizing of image or canvas to specified dimensions in pixels or percentages.

var pixie = new Pixie({
    onLoad: function() {
        pixie.tools.resize.apply({width: 800, height: 500});
    }
});

Methods

apply

Resize image and other canvas objects. If "usePercentages" is false, width/height should be pixels.

apply({ width: number; height: number; maintainAspect: boolean; usePercentages: boolean }): void