package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gdkpixbuf/Ocgtk_gdkpixbuf/Gdkpixbuf_enums/index.html

Module Ocgtk_gdkpixbuf.Gdkpixbuf_enums

type colorspace = [
  1. | `RGB
]
val colorspace_of_int : int -> colorspace
val colorspace_to_int : colorspace -> int
type interptype = [
  1. | `NEAREST
    (*

    This is an accurate simulation of the PostScript image operator without any interpolation enabled. Each pixel is rendered as a tiny parallelogram of solid color, the edges of which are implemented with antialiasing. It resembles nearest neighbor for enlargement, and bilinear for reduction.

    *)
  2. | `TILES
    (*

    Best quality/speed balance; use this mode by default. Bilinear interpolation. For enlargement, it is equivalent to point-sampling the ideal bilinear-interpolated image. For reduction, it is equivalent to laying down small tiles and integrating over the coverage area.

    *)
  3. | `BILINEAR
    (*

    This is the slowest and highest quality reconstruction function. It is derived from the hyperbolic filters in Wolberg's "Digital Image Warping", and is formally defined as the hyperbolic-filter sampling the ideal hyperbolic-filter interpolated image (the filter is designed to be idempotent for 1:1 pixel mapping). **Deprecated**: this interpolation filter is deprecated, as in reality it has a lower quality than the @GDK_INTERP_BILINEAR filter (Since: 2.38)

    *)
  4. | `HYPER
]
val interptype_of_int : int -> interptype
val interptype_to_int : interptype -> int
type pixbufalphamode = [
  1. | `BILEVEL
    (*

    For now falls back to #GDK_PIXBUF_ALPHA_BILEVEL. In the future it will do full alpha compositing.

    *)
  2. | `FULL
]
val pixbufalphamode_of_int : int -> pixbufalphamode
val pixbufalphamode_to_int : pixbufalphamode -> int
type pixbuferror = [
  1. | `CORRUPT_IMAGE
    (*

    Not enough memory.

    *)
  2. | `INSUFFICIENT_MEMORY
    (*

    A bad option was passed to a pixbuf save module.

    *)
  3. | `BAD_OPTION
    (*

    Unknown image type.

    *)
  4. | `UNKNOWN_TYPE
    (*

    Don't know how to perform the given operation on the type of image at hand.

    *)
  5. | `UNSUPPORTED_OPERATION
    (*

    Generic failure code, something went wrong.

    *)
  6. | `FAILED
    (*

    Only part of the animation was loaded.

    *)
  7. | `INCOMPLETE_ANIMATION
]
val pixbuferror_of_int : int -> pixbuferror
val pixbuferror_to_int : pixbuferror -> int
type pixbufrotation = [
  1. | `NONE
    (*

    Rotate by 90 degrees.

    *)
  2. | `COUNTERCLOCKWISE
    (*

    Rotate by 180 degrees.

    *)
  3. | `UPSIDEDOWN
    (*

    Rotate by 270 degrees.

    *)
  4. | `CLOCKWISE
]
val pixbufrotation_of_int : int -> pixbufrotation
val pixbufrotation_to_int : pixbufrotation -> int
type pixbufformatflags_flag = [
  1. | `WRITABLE
    (*

    the image format is scalable

    *)
  2. | `SCALABLE
    (*

    the module is threadsafe. gdk-pixbuf ignores modules that are not marked as threadsafe. (Since 2.28).

    *)
  3. | `THREADSAFE
]
type pixbufformatflags = pixbufformatflags_flag list
val pixbufformatflags_of_int : int -> pixbufformatflags
val pixbufformatflags_to_int : pixbufformatflags -> int