package mm
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=a66de09d471855011ca42c7c9c267ef6
sha512=23ad187d851c6c73cc59b03aaf9856791985c17b0bfa14b3ffb4dd749ba10cadaaf28e353059eaba60a02813c4880053f9f2b483747b568f76c2524a4456592e
doc/mm.image/Mm_image/Image/Canvas/index.html
Module Image.CanvasSource
Canvas of images, i.e. formal sums of images of various dimensions with various offsets.
Parameters
module I : CanvasImageSignature
A canvas.
Create a canvas containing a given image. Negative dimensions are ignored, default ones are those of the image.
Change the width and height of the viewport of the canvas.
Whether the canvas covers the whole area with images (this function is imprecise: it might have false negatives).
Whether the canvas has an alpha channel (i.e. it does not fully cover its viewport, or any of its elements has alpha).
Render the canvas as an image. If fresh is set to true, the resulting can be modified in place. If transparent is set to true, the non-covered portions are made transparent.
Map a function on the underlying image. This of course triggers a render of the canvas.
Bounding box (smallest box enclosing all images contained in the canavs): returns the lower-left corner and the dimensions.
Scale the image proportionally by fractional coefficients with given numerator and denominator in the x and y directions. The viewport is left untouched. The scaler parameter can be specified in order to use a particular function to scale individual images. The viewport is left unchanged.
Resize the image, scaling and changing the viewport.