CapHeight

class CapHeight(val heightPx: Int) : PreviewQualityPolicy(source)

Render no taller than heightPx, reporting the resulting scale in PreviewInfo.renderScale.

Scale-dependent parameters still normalise correctly. Perceptual sharpness does not, so read PreviewInfo.renderScale before judging detail.

A cap at or above the composition's own output height renders at that height, since a preview is never scaled up.

Constructors

Link copied to clipboard
constructor(heightPx: Int)

Properties

Link copied to clipboard

The tallest the preview may render, in pixels. At least one.