package mm

  1. Overview
  2. Docs
The mm library contains high-level to create and manipulate multimedia streams (audio, video, MIDI)

Install

Dune Dependency

Authors

Maintainers

Sources

v0.8.0.tar.gz
md5=de4088083dc16a4a660e378f9573271a
sha512=ff76e514726a6b0abeb043d374615d69b01ba212f06fb10de17aff2f161c447429460e3ac682364b9c0a1f00161648c696caaf596fc4a89cb95c6a33b143cdaa

doc/mm.image/Mm_image/Image/Canvas/argument-1-I/index.html

Parameter Canvas.I

type t

An image.

val width : t -> int

Width of the image.

val height : t -> int

Height of the image.

val size : t -> int

Size of the image in bytes.

val create : int -> int -> t

Create an image with given dimensions.

val blank : t -> unit

Clear the image.

val copy : t -> t

Create a copy of the image.

val add : t -> ?x:int -> ?y:int -> t -> unit

Add source image at given offset to the target image.

val has_alpha : t -> bool

Whether the image has alpha channel.

val fill_alpha : t -> int -> unit

Fill the alpha channel of the image.

val set_pixel_rgba : t -> int -> int -> Pixel.rgba -> unit

Set the RGBA value of a pixel.

val randomize : t -> unit

Fill the image with random data.

val scale : t -> t -> unit

Scale the source image to the destination image.

OCaml

Innovation. Community. Security.