fn kept_size(
(width, height): (u32, u32),
shape: ImageShape,
scale: f32,
) -> (u32, u32)Expand description
How many pixels a picture of width by height pixels, of the shape
shape, is kept at on a screen of scale pixels to the point: as many
as it takes where it is shown, in its own proportions.
A picture in a note is shown as wide as its row, and no wider than it is itself, counting a pixel of it as a point: it is kept at that many points’ worth of pixels, which makes a narrow picture larger on a screen of more than a pixel to the point, as drawing it there always did. The other shapes are shown at sizes of their views’ choosing, and are only ever made smaller: no larger than the largest of those takes, and in exactly the proportions they are cut to, which is what the room kept for them while they load is in.