package hugin

  1. Overview
  2. Docs
Declarative plotting and visualization for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raven-1.0.0.alpha3.tbz
sha256=96d35ce03dfbebd2313657273e24c2e2d20f9e6c7825b8518b69bd1d6ed5870f
sha512=90c5053731d4108f37c19430e45456063e872b04b8a1bbad064c356e1b18e69222de8bfcf4ec14757e71f18164ec6e4630ba770dbcb1291665de5418827d1465

doc/hugin.ucairo/Ucairo/Image/index.html

Module Ucairo.ImageSource

Sourceval create : w:int -> h:int -> surface

create ~w ~h is a new ARGB32 image surface of dimensions w x h.

Raises Failure if allocation fails.

Sourceval create_for_data8 : (int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t -> w:int -> h:int -> stride:int -> surface

create_for_data8 data ~w ~h ~stride wraps existing pixel data as an ARGB32 image surface. data must remain live for the lifetime of the surface.

Sourceval stride_for_width : int -> int

stride_for_width w is the minimum stride in bytes for an ARGB32 image of width w, respecting Cairo alignment requirements.