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
NCSCALE_NONEwill apply no scaling.NCSCALE_SCALEscales a visual to the plane’s size, maintaining aspect ratio.NCSCALE_STRETCHstretches and scales the image in an attempt to fill the entirety of the plane.NCSCALE_NONE_HIRESlikeNONEadmitting high-res blitters.NCSCALE_SCALE_HIRESlikeCALEadmitting high-res blitters.
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 → blitwhere you still have the original frame. Whereas
NcVisual.resize and
NcVisual.resize_noninterpolative
are changing that original frame.