package camlimages

  1. Overview
  2. Docs
Image processing library

Install

Dune Dependency

Authors

Maintainers

Sources

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

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.