pub fn draw_image<P: Pixel>(
bitmap: &mut Bitmap<P>,
clip: &Clip,
pipe: &PipeState<'_>,
image_src: &mut dyn ImageSource,
src_mode: PixelMode,
src_w: u32,
src_h: u32,
matrix: &[f64; 6],
) -> ImageResultExpand description
Render a colour image with transformation.
Only axis-aligned transforms are handled (Phase 2 scope). For rotated or
skewed matrices ImageResult::ArbitraryTransformSkipped is returned.
src_mode conveys the colour space of the source data; it is stored for
future use in colour-space conversion but not acted on in Phase 2 — the
caller is responsible for ensuring ncomps == P::BYTES.
§Panics (debug)
Asserts ncomps == P::BYTES. In release builds a mismatch produces
silently wrong colours; callers must match pixel formats.
§C++ equivalent
Splash::drawImage.