Represents the image data contained in a [Part].
Part
PartImage provides structured access to image data. Currently, it only implments "binary" types.
PartImage
let part = Part::image_binary(640, 480, \"rgb\", (0..640*480*3).map(|i| (i % 255) as u8)).unwrap();if let Some(img) = part.as_image() { assert_eq!(img.height(), 640); assert_eq!(img.width(), 480);} Copy
let part = Part::image_binary(640, 480, \"rgb\", (0..640*480*3).map(|i| (i % 255) as u8)).unwrap();if let Some(img) = part.as_image() { assert_eq!(img.height(), 640); assert_eq!(img.width(), 480);}
Represents the image data contained in a [
Part].PartImageprovides structured access to image data. Currently, it only implments "binary" types.Example