package camlimages

  1. Overview
  2. Docs
Image processing library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

camlimages-5.0.4.tar.bz2
sha256=1c9a68bdc3d348c9f859d490dadf384926213e47a584159832f7fc4a20242865
md5=1ddba74d210b86a899b5d6565f45c2dc

doc/camlimages.core/Rgba32/index.html

Module Rgba32Source

RGBA 32 bit depth image format

Sourcetype elt = Color.rgba
Sourcetype rawimage
Sourcetype t = {
  1. width : int;
  2. height : int;
  3. rawimage : rawimage;
  4. mutable infos : Info.info list;
}
Sourceval resize : (float -> unit) option -> t -> int -> int -> t

resize progress t w h creates a resized image of t with size wxh. You can specify a progress meter function progress, which takes a float from 0 to 1.0.

Generic functions

Please read the comments of module IMAGE in file 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 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 -> bytes -> t
Sourceval create_with_scanlines : int -> int -> Info.info list -> 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
OCaml

Innovation. Community. Security.