Struct stdweb::web::ImageData [] [src]

pub struct ImageData(_);

The ImageData struct represents the underlying pixel data of an area of a element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().

(JavaScript docs)

Methods

impl ImageData
[src]

[src]

Returns the number of rows in the image data object.

(JavaScript docs)

[src]

Returns the number of pixels per row in the image data object.

(JavaScript docs)

Trait Implementations

impl Clone for ImageData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ImageData
[src]

[src]

Formats the value using the given formatter. Read more

impl InstanceOf for ImageData
[src]

[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for ImageData
[src]

[src]

Performs the conversion.

impl ReferenceType for ImageData
[src]

[src]

Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more

impl From<ImageData> for Reference
[src]

[src]

Performs the conversion.

impl TryFrom<ImageData> for Reference
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Reference> for ImageData
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Reference> for ImageData
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Value> for ImageData
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Value> for ImageData
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl JsSerialize for ImageData
[src]

Auto Trait Implementations

impl Send for ImageData

impl Sync for ImageData