Monday, 15 September 2014

javascript - Easeljs: When loading image on to easeljs bitmap class, does it use original image? -



javascript - Easeljs: When loading image on to easeljs bitmap class, does it use original image? -

i using easeljs on website. tried load image on bitmap object createjs.bitmap. since not using total size image, if scaled bitmap, downsample original image accordingly.

there no down-sampling of actual image, pixels laid downwards on canvas down-sampled.

to down-sample source image, scale easeljs bitmap, retrieve canvas image using stage.todataurl(). returns image used elsewhere.

javascript html image easeljs

No comments:

Post a Comment