NcScale_u32

Type Alias NcScale_u32 

Source
pub type NcScale_u32 = ncscale_e;
Expand description

Indicates how to scale an NcVisual during rendering.

It’s recommended to use NcScale instead.

§Associated c_api constants

The NCSCALE_* preferences are applied only for the context of NcVisual.render. You can think of it as a pipeline:

NcVisual::fromfile() → frame → NcVisual.render() → scaling → output frame → blit

where you still have the original frame. Whereas NcVisual.resize and NcVisual.resize_noninterpolative are changing that original frame.

Trait Implementations§

Source§

impl From<NcScale> for NcScale_u32

Source§

fn from(scale: NcScale) -> Self

Converts to this type from the input type.