package camlimages

  1. Overview
  2. Docs
Image processing library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

camlimages-5.0.5.tar.gz
md5=84929b30257aa8e493dc84303768f400
sha512=b3774d2287e4a97082f0289766f5a79d3e75454a194d2d6400cee9cf926f7676d8eba4cb27221a98314461b7a81b4386b253f1d706a94447423394be89d2ed49

doc/camlimages.core/Geometry/index.html

Module GeometrySource

Sourcetype size =
  1. | Scale of float
  2. | Pixel of int
  3. | Guess
Sourcetype aspect_opts =
  1. | Keep_at_most
  2. | Keep_at_least
  3. | Dont_keep
Sourcetype resize_switch =
  1. | Always
  2. | Bigger_only
  3. | Smaller_only
Sourcetype from =
  1. | TopLeft
  2. | BottomRight
  3. | Center
Sourcetype position =
  1. | AtPixel of from * int
  2. | AtScale of from * float
Sourcetype t = {
  1. geom_width : int;
  2. geom_height : int;
  3. geom_x : int;
  4. geom_y : int;
}
Sourcetype 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;
}
Sourceval compute : spec -> int -> int -> t