diff --git a/tiny_skia/src/engine.rs b/tiny_skia/src/engine.rs index 2f05e760..61323f04 100644 --- a/tiny_skia/src/engine.rs +++ b/tiny_skia/src/engine.rs @@ -598,7 +598,7 @@ impl Engine { self.raster_pipeline.draw( &image.handle, image.filter_method, - *bounds, + physical_bounds, image.opacity, _pixels, transform, @@ -629,7 +629,7 @@ impl Engine { self.vector_pipeline.draw( &svg.handle, svg.color, - *bounds, + physical_bounds, svg.opacity, _pixels, transform,