luma.examples icon indicating copy to clipboard operation
luma.examples copied to clipboard

scale option

Open thijstriemstra opened this issue 8 years ago • 1 comments

would be nice to be able to scale and position the demo. I have a 1.8 inch screen that is covered by a hole that's about 60% the size.

thijstriemstra avatar Apr 12 '17 23:04 thijstriemstra

erg ... must've missed this issue - don't recall seeing it before :-s

Anyway, to support this properly I think we probably need to have a transform (much like the orientation parameter) in luma.core - maybe better still would be to supply an affine transform (http://pillow.readthedocs.io/en/4.2.x/PIL.html#PIL.ImageTransform.AffineTransform) on the device which can do any combination of rotate, offset, scale, shear ... and then get rid of the rotate param & code in the mixin (https://github.com/rm-hull/luma.core/blob/master/luma/core/mixin.py#L57-L61)

Worth doing, I reckon :+1:

rm-hull avatar Sep 14 '17 23:09 rm-hull