pub(super) fn draw_img_object_fit(
screen: &Screen,
img: &DecodedImage,
el: &RenderElement,
x0_rect: i32,
y0_rect: i32,
clip_s: &Option<ClipShape>,
)Expand description
計算量: O(Wd×Hd) — Wd,Hd は描画先サイズ。
1 ピクセルごとに元画像をサンプリングする(sample_bilinear_rgba 使用時は
1 ピクセルあたり 4 点読み出し+補間で定数倍が 4 倍になる)。