I'm trying to use this crate with an image consisting of RGB<f64>. As that type isn't provided by this crate, I defined it myself and implemented PixelFormat:
The top-level resize() function is marked as deprecated and says to use new().resize() instead. That function, however, is only implemented for formats that implement PixelFormatBackCompatShim, which is a non-exposed trait. In addition, it is marked as deprecated and recommends to use from_slice(), which doesn't seem to exist (@kornelski said that might have been committed by accident).
How can I use this crate with a custom pixel format?
I'm trying to use this crate with an image consisting of
RGB<f64>
. As that type isn't provided by this crate, I defined it myself and implementedPixelFormat
:The top-level
resize()
function is marked as deprecated and says to usenew().resize()
instead. That function, however, is only implemented for formats that implementPixelFormatBackCompatShim
, which is a non-exposed trait. In addition, it is marked as deprecated and recommends to usefrom_slice()
, which doesn't seem to exist (@kornelski said that might have been committed by accident).How can I use this crate with a custom pixel format?