package camlimages

  1. Overview
  2. Docs
Image processing library

Install

Dune Dependency

Authors

Maintainers

Sources

camlimages-5.0.4.tar.bz2
sha256=1c9a68bdc3d348c9f859d490dadf384926213e47a584159832f7fc4a20242865
md5=1ddba74d210b86a899b5d6565f45c2dc

doc/camlimages.lablgtk2/Ximage2/index.html

Module Ximage2

include module type of struct include Ximage end
type elt = int

ximage data structure with size information

type t = Ximage.t = {
  1. width : int;
  2. height : int;
  3. data : Gdk.image;
}
val destroy : t -> unit

You need manual destroy

val create : kind:Gdk.Image.image_type -> visual:Gdk.visual -> width:int -> height:int -> t

Same as Gdk.Image.create, but with size info

val unsafe_get : t -> int -> int -> elt
val unsafe_set : t -> int -> int -> elt -> unit
val get : t -> int -> int -> elt
val set : t -> int -> int -> elt -> unit
val get_image : [> `drawable ] Gobject.obj -> x:int -> y:int -> width:int -> height:int -> t
val of_image : Gdk.visual -> (float -> unit) option -> Images.t -> t
val get_mono_gc : Gdk.window -> Gdk.gc
val plain_mask : Gdk.window -> int -> int -> Gdk.bitmap
val pixmap_of : Gdk.window -> t -> Gdk.pixmap
val mask_of_image : Gdk.window -> Images.t -> Gdk.bitmap option
val pixmap_of_image : Gdk.window -> (float -> unit) option -> Images.t -> GDraw.pixmap
module Truecolor = Ximage.Truecolor
OCaml

Innovation. Community. Security.