Image module

convert

procedure · 1 overloadsince 0.28.0Source

The same pixels in another format. Gray is made from colour with Rec. 709 luma, colour from gray by repeating it, alpha is added as 255 and dropped without compositing. Always returns a new image (a copy when the format is already right); an invalid image gives an empty one.

convert :: (image: Image, format: Pixel_Format) -> Image

The same pixels in another format. Gray is made from colour with Rec. 709 luma, colour from gray by repeating it, alpha is added as 255 and dropped without compositing. Always returns a new image (a copy when the format is already right); an invalid image gives an empty one.

Parameters

image: Image
format: Pixel_Format

Returns

See also