package camlimages

  1. Overview
  2. Docs
Image processing library

Install

Dune Dependency

Authors

Maintainers

Sources

camlimages-5.0.1.tar.bz2
sha256=fea0bbb53746a29fb546946d34d43ed0907db8326ff95004a11f7ea666f8d541
md5=c06eec6b0e12a993d4677203e733512a

doc/camlimages.core/Geometry/index.html

Module Geometry

type size =
  1. | Scale of float
  2. | Pixel of int
  3. | Guess
type aspect_opts =
  1. | Keep_at_most
  2. | Keep_at_least
  3. | Dont_keep
type resize_switch =
  1. | Always
  2. | Bigger_only
  3. | Smaller_only
type from =
  1. | TopLeft
  2. | BottomRight
  3. | Center
type position =
  1. | AtPixel of from * int
  2. | AtScale of from * float
type t = {
  1. geom_width : int;
  2. geom_height : int;
  3. geom_x : int;
  4. geom_y : int;
}
type spec = {
  1. spec_width : size;
  2. spec_height : size;
  3. spec_aspect : aspect_opts;
  4. spec_switch : resize_switch;
  5. spec_x : int;
  6. spec_y : int;
}
val compute : spec -> int -> int -> t
OCaml

Innovation. Community. Security.