File: blend.mli

package info (click to toggle)
camlimages 2.00-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,536 kB
  • ctags: 2,325
  • sloc: ml: 10,848; ansic: 2,396; makefile: 599; sh: 30
file content (18 lines) | stat: -rw-r--r-- 370 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
type mode =
    Normal
  | Multiply
  | Screen
  | Overlay
  | ColorDodge
  | ColorBurn
  | Darken
  | Lighten
  | Difference
  | Exclusion

val blend : mode -> int -> int -> int
    (* [blend blendmode src dst] *)

val f : mode -> int -> Color.rgb -> Color.rgb -> Color.rgb
    (* [f blendmode srcalpha src dst] 8bit depth *)
    (* bug: no dstination alpha support *)