plushie/widget/image
Image widget builder.
Types
Crop rectangle for image cropping (integer pixel values).
pub type Crop {
Crop(x: Int, y: Int, width: Int, height: Int)
}
Constructors
-
Crop(x: Int, y: Int, width: Int, height: Int)
Values
pub fn content_fit(
img: Image,
cf: content_fit.ContentFit,
) -> Image
Set how content is fitted within the widget bounds.
pub fn filter_method(
img: Image,
f: filter_method.FilterMethod,
) -> Image
Set the image filter method.