module GdkPixbuf:sig
..end
Object for manipulating image data
typepixbuf =
[ `pixbuf ] Gobject.obj
typecolorspace =
[ `RGB ]
typealpha_mode =
[ `BILEVEL | `FULL ]
typeinterpolation =
[ `BILINEAR | `HYPER | `NEAREST | `TILES ]
type
gdkpixbuferror =
| |
ERROR_CORRUPT_IMAGE |
| |
ERROR_INSUFFICIENT_MEMORY |
| |
ERROR_BAD_OPTION |
| |
ERROR_UNKNOWN_TYPE |
| |
ERROR_UNSUPPORTED_OPERATION |
| |
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 -> Stdlib.Buffer.t -> unit