Module Gd


module Gd: sig  end

type t 
exception Too_many_colors
exception Color_not_found
exception Image_creation_failed
exception Not_supported
exception Illegal_state of string
type color 

type ftex_flag =
| FTExSetSpacing
| FTExSetCharmap

type ftex_charmap =
| FTExUnicode
| FTExShiftJIS
| FTExBig5
class virtual color_allocator : object  end
type font 
module Font: sig  end
class virtual image : object  end
val create : x:int -> y:int -> image
val create_truecolor : x:int -> y:int -> image
val open_png : string -> image
val open_jpeg : string -> image
val is_truecolor : t -> bool
val ft_bbox : fname:string ->
size:float -> angle:float -> x:int -> y:int -> string -> int array
val ftex_bbox : fname:string ->
size:float ->
angle:float ->
x:int ->
y:int ->
?flags:ftex_flag array ->
?spacing:float -> ?charmap:ftex_charmap -> string -> int array