Skip to main content

MAX_IMAGE_SIDE

Constant MAX_IMAGE_SIDE 

Source
pub const MAX_IMAGE_SIDE: u32 = 4096;
Expand description

The most pixels a side an image is drawn from. The GPU keeps every image a drawing paints in one atlas of crate::atlas::SIDE pixels a side, so a larger file is resampled to fit this, keeping its aspect, when it is decoded — and both backends draw those same pixels.