mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 14:22:39 +00:00
Decoding a placed raster built a second full-size pixel vector from the RGBA image and premultiplied every pixel into it. The pixels are now premultiplied in place, opaque pixels are skipped, and the buffer becomes the pixmap's pixels without a copy (bytemuck's cast_vec, with a copy when the capacity is not a whole number of pixels). The rendered SVG path reuses its buffer the same way. For a 6000 x 4000 opaque image the step takes 7 ms instead of 120 ms, with identical pixels.