summaryrefslogtreecommitdiffstats
path: root/graphics/src/image.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/image.rs')
-rw-r--r--graphics/src/image.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/src/image.rs b/graphics/src/image.rs
index 318592be..0e8f2fe3 100644
--- a/graphics/src/image.rs
+++ b/graphics/src/image.rs
@@ -23,6 +23,12 @@ pub enum Image {
/// The opacity of the image.
opacity: f32,
+
+ /// If set to `true`, the image will be snapped to the pixel grid.
+ ///
+ /// This can avoid graphical glitches, specially when using a
+ /// [`image::FilterMethod::Nearest`].
+ snap: bool,
},
/// A vector image.
Vector {