package lablgtk3

  1. Overview
  2. Docs
OCaml interface to GTK+3

Install

Dune Dependency

Authors

Maintainers

Sources

lablgtk3-3.1.5.tbz
sha256=d4821cdbecf3ae374f20317d63e43fe58030c3ba9657b51a2e83e652197e8eac
sha512=83f0be38a1e21737de93f88b0adac15cdcc50cf712d773720b9bc1e8d8ffdb2c660d35840f25d326a42a9d4e6537e6cef466099bf72494196b2cc79977e703e3

doc/lablgtk3/GdkPixbuf/index.html

Module GdkPixbufSource

Object for manipulating image data @gtkdoc gdk-pixbuf index

The GdkPixbuf Structure

Sourcetype pixbuf = [ `pixbuf ] Gobject.obj

@gtkdoc gdk-pixbuf gdk-pixbuf-gdk-pixbuf

Sourcetype colorspace = [
  1. | `RGB
]
Sourcetype alpha_mode = [
  1. | `BILEVEL
  2. | `FULL
]
Sourcetype interpolation = [
  1. | `BILINEAR
  2. | `HYPER
  3. | `NEAREST
  4. | `TILES
]
Sourcetype gdkpixbuferror =
  1. | ERROR_CORRUPT_IMAGE
  2. | ERROR_INSUFFICIENT_MEMORY
  3. | ERROR_BAD_OPTION
  4. | ERROR_UNKNOWN_TYPE
  5. | ERROR_UNSUPPORTED_OPERATION
  6. | ERROR_FAILED
Sourceexception GdkPixbufError of gdkpixbuferror * string
Sourceval set_marshal_use_rle : bool -> unit

Creation

Sourceval create : width:int -> height:int -> ?bits:int -> ?colorspace:colorspace -> ?has_alpha:bool -> unit -> pixbuf

@gtkdoc gdk-pixbuf gdk-pixbuf-creating

Sourceval cast : 'a Gobject.obj -> pixbuf
Sourceval copy : pixbuf -> pixbuf
Sourceval subpixbuf : pixbuf -> src_x:int -> src_y:int -> width:int -> height:int -> pixbuf
Sourceval from_file : string -> pixbuf

@gtkdoc gdk-pixbuf gdk-pixbuf-file-loading

Sourceval get_file_info : string -> string * int * int
  • since GTK 2.4
Sourceval from_file_at_size : string -> width:int -> height:int -> pixbuf
  • since GTK 2.4

@gtkdoc gdk-pixbuf gdk-pixbuf-file-loading

Sourceval from_xpm_data : string array -> pixbuf
Sourceval from_data : width:int -> height:int -> ?bits:int -> ?rowstride:int -> ?has_alpha:bool -> Gpointer.region -> pixbuf

Accessors

Sourceval get_n_channels : pixbuf -> int
Sourceval get_has_alpha : pixbuf -> bool
Sourceval get_bits_per_sample : pixbuf -> int
Sourceval get_width : pixbuf -> int
Sourceval get_height : pixbuf -> int
Sourceval get_rowstride : pixbuf -> int
Sourceval get_pixels : pixbuf -> Gpointer.region

Transform

Sourceval add_alpha : ?transparent:(int * int * int) -> pixbuf -> pixbuf

@gtkdoc gdk-pixbuf gdk-pixbuf-util

Sourceval fill : pixbuf -> int32 -> unit

@gtkdoc gdk-pixbuf gdk-pixbuf-util

Sourceval saturate_and_pixelate : dest:pixbuf -> saturation:float -> pixelate:bool -> pixbuf -> unit

@gtkdoc gdk-pixbuf gdk-pixbuf-util

Sourceval copy_area : dest:pixbuf -> ?dest_x:int -> ?dest_y:int -> ?width:int -> ?height:int -> ?src_x:int -> ?src_y:int -> pixbuf -> unit

@gtkdoc gdk-pixbuf gdk-pixbuf-util

Sourceval scale : dest:pixbuf -> ?dest_x:int -> ?dest_y:int -> ?width:int -> ?height:int -> ?ofs_x:float -> ?ofs_y:float -> ?scale_x:float -> ?scale_y:float -> ?interp:interpolation -> pixbuf -> unit

@gtkdoc gdk-pixbuf gdk-pixbuf-scaling

Sourceval composite : dest:pixbuf -> alpha:int -> ?dest_x:int -> ?dest_y:int -> ?width:int -> ?height:int -> ?ofs_x:float -> ?ofs_y:float -> ?scale_x:float -> ?scale_y:float -> ?interp:interpolation -> pixbuf -> unit

@gtkdoc gdk-pixbuf gdk-pixbuf-scaling

Saving

Sourceval save : filename:string -> typ:string -> ?options:(string * string) list -> pixbuf -> unit

@gtkdoc gdk-pixbuf gdk-pixbuf-file-saving

Sourceval save_to_callback : pixbuf -> typ:string -> ?options:(string * string) list -> (string -> unit) -> unit
  • since GTK 2.4
Sourceval save_to_buffer : pixbuf -> typ:string -> ?options:(string * string) list -> Buffer.t -> unit
  • since GTK 2.4
OCaml

Innovation. Community. Security.