package camlimages

  1. Overview
  2. Docs
Image processing library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

camlimages-5.0.5.tar.gz
md5=84929b30257aa8e493dc84303768f400
sha512=b3774d2287e4a97082f0289766f5a79d3e75454a194d2d6400cee9cf926f7676d8eba4cb27221a98314461b7a81b4386b253f1d706a94447423394be89d2ed49

doc/camlimages.core/Index16/index.html

Module Index16Source

Indexed 16 bit depth image format

Sourcetype elt = int
Sourcetype rawimage
Sourcetype t = {
  1. width : int;
  2. height : int;
  3. rawimage : rawimage;
  4. mutable infos : Info.info list;
  5. mutable colormap : Color.rgb Color.map;
  6. mutable transparent : int;
}
Sourceval to_rgb24 : ?failsafe:Color.rgb -> t -> Rgb24.t
Sourceval to_rgba32 : ?failsafe:Color.rgba -> t -> Rgba32.t

to_rgb? ~failsafe t: Image format conversion functions to Rgb24.t and Rgba32.t images. If the color for some pixel value is not defined, failsafe color is used as default.

Generic functions.

Please read the comments of IMAGEINDEXED in genimage.mli

Sourceval dump : t -> bytes
Sourceval unsafe_access : t -> int -> int -> bytes * int
Sourceval get_strip : t -> int -> int -> int -> bytes
Sourceval set_strip : t -> int -> int -> int -> bytes -> unit
Sourceval get_scanline : t -> int -> bytes
Sourceval set_scanline : t -> int -> bytes -> unit
Sourceval unsafe_get : t -> int -> int -> elt
Sourceval unsafe_set : t -> int -> int -> elt -> unit
Sourceval get : t -> int -> int -> elt
Sourceval set : t -> int -> int -> elt -> unit
Sourceval unsafe_get_color : t -> int -> int -> Color.rgb
Sourceval get_color : t -> int -> int -> Color.rgb
Sourceval unsafe_get_rgb : t -> int -> int -> Color.rgb
Sourceval get_rgb : t -> int -> int -> Color.rgb
Sourceval destroy : t -> unit
Sourceval blit : t -> int -> int -> t -> int -> int -> int -> int -> unit
Sourceval map : (elt -> elt -> elt) -> t -> int -> int -> t -> int -> int -> int -> int -> unit
Sourceval blocks : t -> int * int
Sourceval dump_block : t -> int -> int -> Bitmap.Block.t
Sourceval create_with : int -> int -> Info.info list -> Color.rgb Color.map -> int -> bytes -> t
Sourceval create_with_scanlines : int -> int -> Info.info list -> Color.rgb Color.map -> int -> bytes array -> t
Sourceval create : int -> int -> t
Sourceval make : int -> int -> elt -> t
Sourceval copy : t -> t
Sourceval sub : t -> int -> int -> int -> int -> t
Sourceval rawimage : t -> rawimage