Trait image::color::FromPrimitive
source · pub trait FromPrimitive<Component> {
// Required method
fn from_primitive(component: Component) -> Self;
}
Expand description
Convert from one pixel component type to another. For example, convert from u8
to f32
pixel values.
Required Methods§
sourcefn from_primitive(component: Component) -> Self
fn from_primitive(component: Component) -> Self
Converts from any pixel component type to this type.
Object Safety§
This trait is not object safe.