package lablgtk3

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type pixbuf = [ `pixbuf ] Gobject.obj
type colorspace = [
  1. | `RGB
]
type alpha_mode = [
  1. | `BILEVEL
  2. | `FULL
]
type interpolation = [
  1. | `BILINEAR
  2. | `HYPER
  3. | `NEAREST
  4. | `TILES
]
type gdkpixbuferror =
  1. | ERROR_CORRUPT_IMAGE
  2. | ERROR_INSUFFICIENT_MEMORY
  3. | ERROR_BAD_OPTION
  4. | ERROR_UNKNOWN_TYPE
  5. | ERROR_UNSUPPORTED_OPERATION
  6. | ERROR_FAILED
exception GdkPixbufError of gdkpixbuferror * string
val set_marshal_use_rle : bool -> unit
val create : width:int -> height:int -> ?bits:int -> ?colorspace:colorspace -> ?has_alpha:bool -> unit -> pixbuf
val cast : 'a Gobject.obj -> pixbuf
val copy : pixbuf -> pixbuf
val subpixbuf : pixbuf -> src_x:int -> src_y:int -> width:int -> height:int -> pixbuf
val from_file : string -> pixbuf
val get_file_info : string -> string * int * int
val from_file_at_size : string -> width:int -> height:int -> pixbuf
val from_xpm_data : string array -> pixbuf
val from_data : width:int -> height:int -> ?bits:int -> ?rowstride:int -> ?has_alpha:bool -> Gpointer.region -> pixbuf
val get_n_channels : pixbuf -> int
val get_has_alpha : pixbuf -> bool
val get_bits_per_sample : pixbuf -> int
val get_width : pixbuf -> int
val get_height : pixbuf -> int
val get_rowstride : pixbuf -> int
val get_pixels : pixbuf -> Gpointer.region
val add_alpha : ?transparent:(int * int * int) -> pixbuf -> pixbuf
val fill : pixbuf -> int32 -> unit
val saturate_and_pixelate : dest:pixbuf -> saturation:float -> pixelate:bool -> pixbuf -> unit
val copy_area : dest:pixbuf -> ?dest_x:int -> ?dest_y:int -> ?width:int -> ?height:int -> ?src_x:int -> ?src_y:int -> pixbuf -> unit
val 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
val 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
val save : filename:string -> typ:string -> ?options:(string * string) list -> pixbuf -> unit
val save_to_callback : pixbuf -> typ:string -> ?options:(string * string) list -> (string -> unit) -> unit
val save_to_buffer : pixbuf -> typ:string -> ?options:(string * string) list -> Buffer.t -> unit
OCaml

Innovation. Community. Security.