Returns the height to be used when scaling
Scale T to fit within the given maxWidth and maxHeight.
Scale Screenshot using the given factor. Affects: bitmap
Helper method to convert an object to JSON
Returns the width to be used when scaling