package imagemagick

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val sizeof_quantum : unit -> int
val sizeof_quantum_bit : unit -> int
type image_handle
val read_image : filename:string -> image_handle
val get_canvas : width:int -> height:int -> color:string -> image_handle
val create_image : width:int -> height:int -> pseudo_format:string -> image_handle
val clone_image : image_handle -> image_handle
val write_image : image_handle -> filename:string -> unit
val display : image_handle -> unit
val image_to_stdout : image_handle -> unit
val blob_of_image : image_handle -> int list
val dump_to_stdout : image_handle -> unit
val get_image_width : image_handle -> int
val get_image_height : image_handle -> int
val get_image_depth : image_handle -> int
val get_image_quality : image_handle -> int
val get_image_mimetype : image_handle -> string
val get_image_size : image_handle -> string
val get_image_colors : image_handle -> int
val get_image_colorspace : image_handle -> int
val ping_image_infos : string -> int * int * int * int * int * string
val ping_image : string -> bool
val get_number_colors : image_handle -> int
val get_image_histogram : image_handle -> histogram_file:string -> int
val get_max_colormap : unit -> int
type image_type =
  1. | Undefined_image_type
  2. | Bilevel
  3. | Grayscale
  4. | GrayscaleMatte
  5. | Palette
  6. | PaletteMatte
  7. | TrueColor
  8. | TrueColorMatte
  9. | ColorSeparation
  10. | ColorSeparationMatte
  11. | Optimize
val get_image_type : image_handle -> image_type
val string_of_image_type : image_type -> string
type magick_boolean =
  1. | MagickFalse
  2. | MagickTrue
val magick_boolean_of_string : string -> magick_boolean
type noise_type =
  1. | UndefinedNoise
  2. | UniformNoise
  3. | GaussianNoise
  4. | MultiplicativeGaussianNoise
  5. | ImpulseNoise
  6. | LaplacianNoise
  7. | PoissonNoise
type resize_filter =
  1. | Undefined_resize_filter
  2. | Point
  3. | Box
  4. | Triangle
  5. | Hermite
  6. | Hanning
  7. | Hamming
  8. | Blackman
  9. | Gaussian
  10. | Quadratic
  11. | Cubic
  12. | Catrom
  13. | Mitchell
  14. | Lanczos
  15. | Bessel
  16. | Sinc
val resize_filter_of_string : string -> resize_filter
val resize_filter_of_string' : string -> resize_filter
val string_of_resize_filter : resize_filter -> string
type channel_type =
  1. | Undefined_Channel
  2. | Red
  3. | Gray
  4. | Cyan
  5. | Green
  6. | Magenta
  7. | Blue
  8. | Yellow
  9. | Alpha
  10. | Opacity
  11. | Black
  12. | Index
  13. | All_Channels
  14. | Default_Channels
val channel_type_of_string : string -> channel_type
val channel_type_of_string' : string -> channel_type
val string_of_channel_type : channel_type -> string
type composite_operator =
  1. | Undefined_composite_operator
  2. | No_composite_operator
  3. | Add
  4. | Atop
  5. | Blend
  6. | Bumpmap
  7. | Clear
  8. | ColorBurn
  9. | ColorDodge
  10. | Colorize
  11. | CopyBlack
  12. | CopyBlue
  13. | Copy
  14. | CopyCyan
  15. | CopyGreen
  16. | CopyMagenta
  17. | CopyOpacity
  18. | CopyRed
  19. | CopyYellow
  20. | Darken
  21. | DstAtop
  22. | Dst
  23. | DstIn
  24. | DstOut
  25. | DstOver
  26. | Difference
  27. | Displace
  28. | Dissolve
  29. | Exclusion
  30. | HardLight
  31. | Hue
  32. | In
  33. | Lighten
  34. | Luminize
  35. | Minus
  36. | Modulate
  37. | Multiply
  38. | Out
  39. | Over
  40. | Overlay
  41. | Plus
  42. | Replace
  43. | Saturate
  44. | Screen
  45. | SoftLight
  46. | SrcAtop
  47. | Src
  48. | SrcIn
  49. | SrcOut
  50. | SrcOver
  51. | Subtract
  52. | Threshold
  53. | Xor
val composite_operator_of_string : string -> composite_operator
val composite_operator_of_string' : string -> composite_operator
val string_of_composite_operator : composite_operator -> string
module Imper : sig ... end
module Fun : sig ... end
val get_magick_home_url : unit -> string
val get_magick_release_date : unit -> string
val get_magick_version : unit -> int * string
val get_magick_quantum_depth : unit -> int * string
val get_magick_quantum_range : unit -> int * string
val get_binding_version : unit -> string
val inspect_big_array : ('a, 'b, 'c) Bigarray.Array2.t -> unit
val select : unit -> int
val big_array2_dump : (int, 'a, 'b) Bigarray.Array2.t -> unit
val image_of_bigarray : ('a, 'b, 'c) Bigarray.Array3.t -> image_handle
type coords_2d = {
  1. x : int;
  2. y : int;
}
type dimentions = {
  1. width : int;
  2. height : int;
}
type bounding_box = {
  1. pos : coords_2d;
  2. dims : dimentions;
}
type gradient_spreadMethod =
  1. | Pad_spread
  2. | Repeat_spread
  3. | Reflect_spread
val _linear_gradient : width:int -> height:int -> a:coords_2d -> b:coords_2d -> ?spread_method:gradient_spreadMethod -> ?bounding_box:bounding_box -> unit -> image_handle
val linear_gradient : image_handle -> a:coords_2d -> b:coords_2d -> stop:(float * string) list -> ?matrix: ((float * float * float) * (float * float * float) * (float * float * float)) -> ?spread_method:gradient_spreadMethod -> ?bounding_box:bounding_box -> unit -> unit
OCaml

Innovation. Community. Security.