Resize tool allows resizing of image or canvas to specified dimensions in pixels or percentages.
var pixie = new Pixie({
onLoad: function() {
var resizeTool = pixie.getTool('resize');
resizeTool.apply(800, 500);
}
});

Resize tool methods
apply
-
Parameters
-
width: number
-
height: number
-
Default value percentages: boolean = false
Returns void
-
Resize image and other canvas objects. If
percentages
isfalse
, width/height should be pixels, otherwise it should be percentages.