Struct wfc_image::ImagePatterns
source · pub struct ImagePatterns { /* private fields */ }
Implementations
sourceimpl ImagePatterns
impl ImagePatterns
pub fn new(image: &DynamicImage, pattern_size: Size) -> Self
pub fn set_empty_colour(&mut self, empty_colour: Rgb<u8>)
pub fn to_image(&self) -> DynamicImage
pub fn image_from_wave(&self, wave: &Wave) -> DynamicImage
pub fn weighted_average_colour<'a>(&self, cell: &'a WaveCellRef<'a>) -> Rgb<u8>
pub fn grid(&self) -> &Grid<Rgb<u8>>
pub fn id_grid(&self) -> Grid<PatternId>
pub fn pattern(&self, pattern_id: PatternId) -> &Pattern
pub fn pattern_mut(&mut self, pattern_id: PatternId) -> &mut Pattern
pub fn global_stats(&self) -> GlobalStats
Auto Trait Implementations
impl RefUnwindSafe for ImagePatterns
impl Send for ImagePatterns
impl Sync for ImagePatterns
impl Unpin for ImagePatterns
impl UnwindSafe for ImagePatterns
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.