(&self, pixels: VecRGBA, width: usize, height: usize, gamma: f64)
| 73 | /// Use 0.0 for gamma if the image is sRGB (most images are). |
| 74 | #[inline] |
| 75 | pub fn new_image<VecRGBA>(&self, pixels: VecRGBA, width: usize, height: usize, gamma: f64) -> Result<Image<'static>, Error> where VecRGBA: Into<Box<[RGBA]>> { |
| 76 | Image::new(self, pixels, width, height, gamma) |
| 77 | } |
| 78 | |
| 79 | /// Generate palette for the image |
| 80 | pub fn quantize(&self, image: &mut Image<'_>) -> Result<QuantizationResult, Error> { |