pub struct ImageData(/* private fields */);
Expand description
The ImageData struct represents the underlying pixel data of an area of a <canvas>
element.
You can create a new instance by calling CanvasRenderingContext2d::create_image_data
or CanvasRenderingContext2d::create_image_data_size_of
.
Implementations§
Trait Implementations§
Source§impl InstanceOf for ImageData
impl InstanceOf for ImageData
Source§impl ReferenceType for ImageData
impl ReferenceType for ImageData
Source§unsafe fn from_reference_unchecked(reference: Reference) -> Self
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper.
Doesn’t do any type checking; highly unsafe to use!
impl JsSerialize for ImageData
Auto Trait Implementations§
impl Freeze for ImageData
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnwindSafe for ImageData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more