package mm
Install
Dune Dependency
Authors
Maintainers
Sources
md5=9316f8bce6e8b7a2c83aaab31d3326dc
sha512=489e082866fd7db77248cb7e3a5d0a7e5af6c3390c9b27b317cce9bb3a48f26e6a05d1d55a662a181b5dcbeeec59aded5d0f08bd33c0ee8554655c5cad69a782
doc/mm.image/Mm_image/Image/CanvasYUV420/index.html
Module Image.CanvasYUV420
Source
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.
Execute a function on the rendering of the canvas.
Bouding box (smallest box enclosing all images contained in the canavs): returns the lower-left corner and the dimensions.
val scale :
?scaler:(Mm_image__ImageYUV420.t -> Mm_image__ImageYUV420.t -> unit) ->
Fraction.t ->
Fraction.t ->
t ->
t
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.