package mm
Install
Dune Dependency
Authors
Maintainers
Sources
md5=003b6e873fe6158dda4627bb674fb57b
sha512=c486e8eaa5dd25a2629c9486c4048ffa2cdeae9e56f73bc8d01a86413038dd3473ebd383abb06f08a2a24a78a335f22aede98ac92436e42a9c6eb1a856f92dab
doc/mm.image/Mm_image/Image/Canvas/index.html
Module Image.Canvas
Source
Canvas of images, i.e. formal sums of images of various dimensions with various offsets.
Parameters
module I : CanvasImage
Signature
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).
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.
Bouding 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.