package camlimages

  1. Overview
  2. Docs
Image processing library

Install

Dune Dependency

Authors

Maintainers

Sources

camlimages-5.0.2.tar.bz2
sha256=8a36e7d5636358db533de71e55533fc8118444c607355b68357e0e619f3ab1d4
md5=956fc1942a4b4c5da473ddcd9c9d028b

doc/camlimages.core/Blend/index.html

Module Blend

Color blending. Inspired from the implementation of Ghostscript

type mode =
  1. | Normal
  2. | Multiply
  3. | Screen
  4. | Overlay
  5. | ColorDodge
  6. | ColorBurn
  7. | Darken
  8. | Lighten
  9. | Difference
  10. | Exclusion
val blend : mode -> int -> int -> int

blend blendmode src dst computes blending of one color component.

val f : mode -> int -> Color.rgb -> Color.rgb -> Color.rgb

f blendmode srcalpha src dst 8bit depth .

bug: no destination alpha support.

OCaml

Innovation. Community. Security.