Function convert_image::force_pixel_format

source ·
pub fn force_pixel_format<FRAME, FMT1, FMT2>(frame: FRAME) -> SimpleFrame<FMT2>
where FRAME: OwnedImageStride<FMT1>, FMT2: PixelFormat,
Expand description

Force interpretation of data from frame into another pixel_format.

This moves the data. See force_pixel_format_ref() for a function which makes a view of the original data.