Struct native_windows_gui::ImageData [−][src]
pub struct ImageData { pub frame: *mut IWICBitmapSource, }
Expand description
Represents a source of pixel that can be read, but cannot be written back to.
Fields
frame: *mut IWICBitmapSource
Implementations
Retrieves the sampling rate between pixels and physical world measurements.
Copy the frame pixels into a buffer.
Parameters: pixel_size: defines the size of a pixel in bytes. In a typical RGBA image, this would be 4 (1 byte for each component). If unsure, use the pixel_format.
May return an error if the pixel data could not be read
Copy a region of the frames pixel into a buffer.
Parameters: offset: The [x,y] offset at which the region begins size: The [width, height] size of the region pixel_size: defines the size of a pixel in bytes. In a typical RGBA image, this would be 4 (1 byte for each component). If unsure, use the pixel_format.
May return an error if the pixel data could not be read
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImageData
impl UnwindSafe for ImageData