Enum image::DynamicImage [] [src]

pub enum DynamicImage {
    ImageLuma8(GrayImage),
    ImageLumaA8(GrayAlphaImage),
    ImageRgb8(RgbImage),
    ImageRgba8(RgbaImage),
}

A Dynamic Image

Variants

Each pixel in this image is 8-bit Luma

Each pixel in this image is 8-bit Luma with alpha

Each pixel in this image is 8-bit Rgb

Each pixel in this image is 8-bit Rgb with alpha

Methods

impl DynamicImage
[src]

[src]

Creates a dynamic image backed by a buffer of grey pixels.

[src]

Creates a dynamic image backed by a buffer of grey pixels with transparency.

[src]

Creates a dynamic image backed by a buffer of RGB pixels.

[src]

Creates a dynamic image backed by a buffer of RGBA pixels.

[src]

Returns a copy of this image as an RGB image.

[src]

Returns a copy of this image as an RGBA image.

[src]

Returns a copy of this image as a Luma image.

[src]

Returns a copy of this image as a LumaA image.

[src]

Return a cut out of this image delimited by the bounding rectangle.

[src]

Return a reference to an 8bit RGB image

[src]

Return a mutable reference to an 8bit RGB image

[src]

Return a reference to an 8bit RGBA image

[src]

Return a mutable reference to an 8bit RGBA image

[src]

Return a reference to an 8bit Grayscale image

[src]

Return a mutable reference to an 8bit Grayscale image

[src]

Return a reference to an 8bit Grayscale image with an alpha channel

[src]

Return a mutable reference to an 8bit Grayscale image with an alpha channel

[src]

Return this image's pixels as a byte vector.

[src]

Return this image's color type.

[src]

Return a grayscale version of this image.

[src]

Invert the colors of this image. This method operates inplace.

[src]

Resize this image using the specified filter algorithm. Returns a new image. The image's aspect ratio is preserved. The image is scaled to the maximum possible size that fits within the bounds specified by nwidth and nheight.

[src]

Resize this image using the specified filter algorithm. Returns a new image. Does not preserve aspect ratio. nwidth and nheight are the new image's dimensions

[src]

Performs a Gaussian blur on this image. sigma is a measure of how much to blur by.

[src]

Performs an unsharpen mask on this image. sigma is the amount to blur the image by. threshold is a control of how much to sharpen.

See https://en.wikipedia.org/wiki/Unsharp_masking#Digital_unsharp_masking

[src]

Filters this image with the specified 3x3 kernel.

[src]

Adjust the contrast of this image. contrast is the amount to adjust the contrast by. Negative values decrease the contrast and positive values increase the contrast.

[src]

Brighten the pixels of this image. value is the amount to brighten each pixel by. Negative values decrease the brightness and positive values increase it.

[src]

Hue rotate the supplied image. value is the degrees to rotate each pixel by. 0 and 360 do nothing, the rest rotates by the given degree value. just like the css webkit filter hue-rotate(180)

[src]

Flip this image vertically

[src]

Flip this image horizontally

[src]

Rotate this image 90 degrees clockwise.

[src]

Rotate this image 180 degrees clockwise.

[src]

Rotate this image 270 degrees clockwise.

[src]

Encode this image and write it to w

Trait Implementations

impl Clone for DynamicImage
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl GenericImage for DynamicImage
[src]

The type of pixel.

[src]

The width and height of this image.

[src]

The bounding rectangle of this image.

[src]

Returns the pixel located at (x, y) Read more

[src]

Put a pixel at location (x, y) Read more

[src]

DEPRECATED: Use iterator pixels_mut to blend the pixels directly.

[src]

DEPRECATED: Do not use is function: It is unimplemented!

[src]

The width of this image.

[src]

The height of this image.

[src]

Returns true if this x, y coordinate is contained inside the image.

[src]

Returns the pixel located at (x, y) Read more

[src]

Puts a pixel at location (x, y) Read more

[src]

Returns an Iterator over the pixels of this image. The iterator yields the coordinates of each pixel along with their value Read more

[src]

Returns an Iterator over mutable pixels of this image. The iterator yields the coordinates of each pixel along with a mutable reference to them. Read more

[src]

Copies all of the pixels from another image into this image. Read more

[src]

Returns a subimage that is a view into this image.