v0.8
v0.8 (2022-11-30)
Breaking changes
Paste
draw struct now stores images and masks by reference instead of by value. This is to prevent
unnecessary cloning of large images and/or masks.- Paste now has two generic lifetime arguments:
Paste<'img, 'mask, _>
. - This also means that
Image::paste
,Image::paste_with_mask
, andImage::with
methods now take images and masks
by reference instead of by value too.
- Paste now has two generic lifetime arguments:
Other changes
- Add support for drawing lines and polygons using
Line
andPolygon
draw entities- Drawing a line or polygon with rounded vertices and a non-centered border position results in undesired output as
of now.
- Drawing a line or polygon with rounded vertices and a non-centered border position results in undesired output as
- Add new
static
feature. When enabled, this will statically link any native dependencies - Add non-zero width/height assertions to image constructors
Bug fixes
- Fix GIF decoding bug for images with a global palette
- Fix conversion using
Pixel::from_arbitrary_palette
with dynamic pixels
Full Changelog: v0.7...v0.8