Implement image support for canvas widget
This commit is contained in:
parent
87a613edd1
commit
0ceee1cf3a
16 changed files with 485 additions and 29 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue