AnsweredAssumed Answered

ImageParameters, IdentifyParameters and the like

Question asked by btfou on Dec 5, 2013
Latest reply on Dec 6, 2013 by btfou
Is there a reason parameter like classes don't accept properties as part of the constructor? Why not set the default class properties before the constructor and/or mixin in the constructor so an object/json can be passed with the desired parameters?

//why not var ip = new ImageParameters({   format: 'png24',   dpi: 117 });  //or var ip = new ImageParameters(params);  //instead of var ip = new ImageParameters(); ip.format = 'png24'; ip.dpi = 117;

Outcomes