package imagemagick

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val plasma_image : image_handle -> x1:int -> y1:int -> x2:int -> y2:int -> attenuate:int -> depth:int -> unit
val flip : image_handle -> unit
val flop : image_handle -> unit
val magnify : image_handle -> unit
val minify : image_handle -> unit
val enhance : image_handle -> unit
val trim : image_handle -> unit
val despeckle : image_handle -> unit
val negate : image_handle -> ?grayscale:magick_boolean -> unit -> unit
val contrast : image_handle -> sharpen:magick_boolean -> unit
val equalize : image_handle -> unit
val normalize : image_handle -> unit
val white_threshold : image_handle -> threshold:string -> unit
val black_threshold : image_handle -> threshold:string -> unit
val cyclecolormap : image_handle -> displace:int -> unit
val solarize : image_handle -> threshold:float -> unit
val modulate' : image_handle -> factors:string -> unit
val modulate : image_handle -> ?brightness:int -> ?saturation:int -> ?hue:int -> unit -> unit
val blur : image_handle -> ?radius:float -> sigma:float -> unit -> unit
val gaussian_blur : image_handle -> ?radius:float -> sigma:float -> unit -> unit
val motion_blur : image_handle -> ?radius:float -> sigma:float -> angle:float -> unit -> unit
val charcoal : image_handle -> ?radius:float -> sigma:float -> unit -> unit
val edge : image_handle -> radius:float -> unit
val emboss : image_handle -> ?radius:float -> sigma:float -> unit -> unit
val implode : image_handle -> amount:float -> unit
val medianfilter : image_handle -> radius:float -> unit
val oilpaint : image_handle -> radius:float -> unit
val reduce_noise : image_handle -> radius:float -> unit
val roll : image_handle -> x:int -> y:int -> unit
val shade : image_handle -> ?gray:magick_boolean -> azimuth:float -> elevation:float -> unit -> unit
val spread : image_handle -> radius:float -> unit
val swirl : image_handle -> degrees:float -> unit
val sharpen : image_handle -> ?radius:float -> sigma:float -> unit -> unit
val unsharpmask : image_handle -> radius:float -> sigma:float -> amount:float -> threshold:float -> unit
val wave : image_handle -> amplitude:float -> wave_length:float -> unit
val rotate : image_handle -> degrees:float -> unit
val shear : image_handle -> x:float -> y:float -> unit
val affine_transform : image_handle -> ?tx:float -> ?ty:float -> ?sx:float -> ?sy:float -> ?rx:float -> ?ry:float -> unit -> unit
val adaptive_threshold : image_handle -> width:int -> height:int -> offset:int -> unit
val crop : image_handle -> x:int -> y:int -> width:int -> height:int -> unit
val chop : image_handle -> x:int -> y:int -> width:int -> height:int -> unit
val splice : image_handle -> x:int -> y:int -> width:int -> height:int -> unit
val colorize : image_handle -> string -> int -> int -> int -> int -> unit
val acquire_pixel : image_handle -> int -> int -> int * int * int * int
val composite_image : image_handle -> image_handle -> compose:composite_operator -> ?x:int -> ?y:int -> unit -> unit
val texture_image : image_handle -> image_handle -> unit
val bilevel_channel : image_handle -> channel:channel_type -> float -> unit
val blur_channel : image_handle -> channel:channel_type -> ?radius:float -> sigma:float -> unit -> unit
val gaussian_blur_channel : image_handle -> channel:channel_type -> ?radius:float -> sigma:float -> unit -> unit
val radial_blur : image_handle -> angle:float -> unit
val radial_blur_channel : image_handle -> channel:channel_type -> angle:float -> unit
val sharpen_image_channel : image_handle -> channel:channel_type -> ?radius:float -> sigma:float -> unit -> unit
val add_noise : image_handle -> noise_type -> unit
val resize : image_handle -> width:int -> height:int -> filter:resize_filter -> blur:float -> unit
val sample : image_handle -> width:int -> height:int -> unit
val scale : image_handle -> width:int -> height:int -> unit
val thumbnail : image_handle -> width:int -> height:int -> unit
val set_image_colors : image_handle -> int -> unit
val set_compression_quality : image_handle -> int -> unit
val set_image_type : image_handle -> image_type:image_type -> unit
val set_type : image_handle -> unit
val strip_image : image_handle -> unit
val level : image_handle -> string -> unit
val level_channel : image_handle -> channel:channel_type -> float -> float -> float -> unit
val gamma_channel : image_handle -> channel:channel_type -> gamma:float -> unit
val negate_channel : image_handle -> channel:channel_type -> magick_boolean -> unit
val ordered_dither : image_handle -> unit
val compress_colormap : image_handle -> unit
val posterize : image_handle -> levels:int -> dither:magick_boolean -> unit
val map_image : image_handle -> map_image:image_handle -> dither:magick_boolean -> unit
val is_gray : image_handle -> bool
val is_monochrome : image_handle -> bool
val is_opaque : image_handle -> bool
val is_palette : image_handle -> bool
val is_taint : image_handle -> bool
val is_equal : image_handle -> image_handle -> bool * float * float * float
type line_cap =
  1. | UndefinedCap
  2. | ButtCap
  3. | RoundCap
  4. | SquareCap
type line_join =
  1. | UndefinedJoin
  2. | MiterJoin
  3. | RoundJoin
  4. | BevelJoin
type color = int * int * int * int
val channels_of_color : color -> int * int * int * int
val acquire_pixel_opacity : image_handle -> int -> int -> int * int * int * int
val set_image_opacity : image_handle -> opacity:int -> unit
val color_of_string : string -> color
val color_of_rgbo_tuple : (int * int * int * int) -> color
val rgbo_tuple_of_color : color -> int * int * int * int
val max_color_map : int
val add_colors : color -> color -> color
val sub_colors : color -> color -> color
val mul_colors : color -> color -> color
val dump_color : color -> unit
val div_colors : color -> color -> color
val rgb_string_of_color : color -> string
val rgba_string_of_color : color -> string
val hexa_string_of_color : color -> string
val color_of_hex : string -> int * int * int * int
val black : color
val transparent : color
type affine_matrix = {
  1. sx : float;
  2. rx : float;
  3. ry : float;
  4. sy : float;
  5. tx : float;
  6. ty : float;
}
val identity_matrix : affine_matrix
val tuple_of_matrix : affine_matrix:affine_matrix -> float * float * float * float * float * float
val set_pixel : image_handle -> x:int -> y:int -> red:int -> green:int -> blue:int -> opacity:int -> unit
val draw_point : image_handle -> x:int -> y:int -> color:color -> unit
val draw_line : image_handle -> x0:int -> y0:int -> x1:int -> y1:int -> ?fill_color:color -> ?stroke_color:color -> ?stroke_antialias:magick_boolean -> ?stroke_width:float -> ?line_cap:line_cap -> unit -> unit
val draw_circle : image_handle -> x0:int -> y0:int -> x1:int -> y1:int -> ?fill_color:color -> ?stroke_color:color -> ?stroke_width:float -> ?stroke_antialias:magick_boolean -> ?affine_matrix:affine_matrix -> unit -> unit
val draw_rectangle : image_handle -> x0:int -> y0:int -> x1:int -> y1:int -> ?fill_color:color -> ?stroke_color:color -> ?stroke_width:float -> ?stroke_antialias:magick_boolean -> ?line_join:line_join -> ?affine_matrix:affine_matrix -> unit -> unit
val draw_round_rectangle : image_handle -> x0:int -> y0:int -> x1:int -> y1:int -> wc:int -> hc:int -> ?fill_color:color -> ?stroke_color:color -> ?stroke_antialias:magick_boolean -> ?stroke_width:float -> ?affine_matrix:affine_matrix -> unit -> unit
val draw_arc : image_handle -> x0:int -> y0:int -> x1:int -> y1:int -> a0:int -> a1:int -> ?fill_color:color -> ?stroke_color:color -> ?stroke_antialias:magick_boolean -> ?stroke_width:float -> ?line_cap:line_cap -> ?affine_matrix:affine_matrix -> unit -> unit
val draw_ellipse : image_handle -> cx:int -> cy:int -> rx:int -> ry:int -> ?a0:int -> ?a1:int -> ?fill_color:color -> ?stroke_color:color -> ?stroke_antialias:magick_boolean -> ?stroke_width:float -> ?affine_matrix:affine_matrix -> unit -> unit
val draw_polyline : image_handle -> coords:(int * int) array -> ?fill_color:color -> ?stroke_color:color -> ?stroke_antialias:magick_boolean -> ?stroke_width:float -> ?line_join:line_join -> ?line_cap:line_cap -> ?affine_matrix:affine_matrix -> unit -> unit
val draw_polygon : image_handle -> coords:(int * int) array -> ?fill_color:color -> ?stroke_color:color -> ?stroke_antialias:magick_boolean -> ?stroke_width:float -> ?line_join:line_join -> ?affine_matrix:affine_matrix -> unit -> unit
val draw_bezier : image_handle -> coords:(int * int) array -> ?fill_color:color -> ?stroke_color:color -> ?stroke_antialias:magick_boolean -> ?stroke_width:float -> ?line_cap:line_cap -> ?affine_matrix:affine_matrix -> unit -> unit
val draw_path : image_handle -> path:string -> ?fill_color:color -> ?stroke_color:color -> ?stroke_antialias:magick_boolean -> ?stroke_width:float -> ?line_join:line_join -> ?line_cap:line_cap -> ?affine_matrix:affine_matrix -> unit -> unit
type style_type =
  1. | Undefined_Style
  2. | Normal_Style
  3. | Italic
  4. | Oblique
  5. | Any_Style
type decoration_type =
  1. | Undefined_Decoration
  2. | No_Decoration
  3. | Underline
  4. | Overline
  5. | LineThrough
type stretch_type =
  1. | Undefined_Stretch
  2. | Normal_Stretch
  3. | UltraCondensed
  4. | ExtraCondensed
  5. | Condensed
  6. | SemiCondensed
  7. | SemiExpanded
  8. | Expanded
  9. | ExtraExpanded
  10. | UltraExpanded
  11. | Any_Stretch
val draw_text : image_handle -> text:string -> ?font:string -> x:int -> y:int -> point_size:float -> ?density_x:int -> ?density_y:int -> ?style:style_type -> ?weight:int -> ?fill_color:color -> ?stroke_color:color -> ?decoration:decoration_type -> ?stretch:stretch_type -> ?stroke_width:float -> ?stroke_antialias:magick_boolean -> ?text_antialias:magick_boolean -> ?encoding:string -> ?affine_matrix:affine_matrix -> unit -> unit
type metrics_infos = {
  1. ascent : float;
  2. descent : float;
  3. text_width : float;
  4. text_height : float;
  5. max_advance : float;
  6. underline_position : float;
  7. underline_thickness : float;
  8. pixels_per_em_x : float;
  9. pixels_per_em_y : float;
  10. bounds_x1 : float;
  11. bounds_y1 : float;
  12. bounds_x2 : float;
  13. bounds_y2 : float;
}
val get_metrics : image_handle -> text:string -> ?font:string -> x:int -> y:int -> point_size:float -> ?density_x:int -> ?density_y:int -> ?style:style_type -> ?weight:int -> ?decoration:decoration_type -> ?stretch:stretch_type -> ?stroke_width:float -> unit -> metrics_infos
val transform_metrics : metrics:metrics_infos -> affine_matrix:affine_matrix -> metrics_infos
val draw_text_devel : image_handle -> text:string -> unit
val draw_mvg : image_handle -> mvg:string -> unit
val get_raw : image_handle -> (int * int * int * int) array array
val get_raw' : image_handle -> (int * int * int * int) array array
val get_raw_opacity : image_handle -> (int * int * int * int) array array
val get_raw_without_alpha : image_handle -> (int * int * int) array array
val get_raw_gl_indexed : image_handle -> (int * int * int * int) array
val get_raw_gl_indexed_without_alpha : image_handle -> (int * int * int) array
val set_raw : raw:(int * int * int * int) array array -> image_handle
val set_raw_c : raw:(int * int * int * int) array array -> image_handle
type image_list_handle
val new_image_list : unit -> image_list_handle
val no_op : image_handle -> unit
val display_images : image_list_handle -> unit
val append_image_to_list : image_list_handle -> image_handle -> ?delay:int -> unit -> unit
val image_list_length : image_list_handle -> int
val deconstruct_images : image_list_handle -> unit
val coalesce_images : image_list_handle -> unit
val flatten_images : image_list_handle -> unit
val average_images : image_list_handle -> image_handle
val animate_images : image_list_handle -> unit
val write_images : image_list_handle -> string -> unit
val get_last_image_in_list : image_list_handle -> image_handle
val get_first_image_in_list : image_list_handle -> image_handle
type stack =
  1. | Left_to_right
  2. | Top_to_bottom
val stack_dir_of_string : stack:string -> stack
val append_images : image_list_handle -> stack:stack -> image_handle
OCaml

Innovation. Community. Security.