Trait julia_set::transform::ApplyTransform
source · pub trait ApplyTransform<Pix: Pixel, F> {
type CombinedTransform: PixelTransform<Pix>;
// Required method
fn apply(
self,
transform: F,
) -> ImageAndTransform<Pix, Self::CombinedTransform>;
}
Expand description
Trait allowing to lazily apply one or more PixelTransform
s to an image.
This trait is implemented for [ImageBuffer
]s and for ImageAndTransform
s, allowing
to chain transforms.
Required Associated Types§
sourcetype CombinedTransform: PixelTransform<Pix>
type CombinedTransform: PixelTransform<Pix>
Combined transform after applying transform
.
Required Methods§
sourcefn apply(self, transform: F) -> ImageAndTransform<Pix, Self::CombinedTransform>
fn apply(self, transform: F) -> ImageAndTransform<Pix, Self::CombinedTransform>
Appends transform
to the list of transforms to be performed on the source image.