Giftype gif_extension = | GifComment of string list |
| GifGraphics of string list |
| GifPlaintext of string list |
| GifApplication of string list |
| GifOtherExt of int * string list |
High level interfaces
type gif_frame = {frame_left : int; |
frame_top : int; |
frame_bitmap : Index8.t; |
mutable frame_extensions : gif_extension list; |
frame_delay : int; |
}val check_header : string -> Images.headerChecks the file header
val load : string -> Images.load_option list -> gif_sequenceLoads a gif image sequence
val load_sequence : string -> Images.load_option list -> Images.sequenceLoads a gif image sequence, but to more general type
val load_first : string -> Images.load_option list -> Images.tLoads the first frame of a gif image sequence.
val save : string -> Images.save_option list -> gif_sequence -> unitSaves a gif image sequence
val save_image : string -> Images.save_option list -> Images.t -> unitSaves an image as a gif file with only one frame
type screen_info = {s_width : int; |
s_height : int; |
s_color_resolution : int; |
s_back_ground_color : int; |
s_colormap : Color.rgb array; |
}type gif_desc = {desc_left : int; |
desc_top : int; |
desc_width : int; |
desc_height : int; |
desc_interlace : bool; |
desc_colormap : Color.rgb array; |
}val dGifOpenFileName : string -> screen_info * in_channelval dGifCloseFile : in_channel -> unitval dGifGetRecordType : in_channel -> record_typeval dGifGetImageDesc : in_channel -> gif_descval dGifGetLine : in_channel -> bytesval dGifGetExtension : in_channel -> int * string listval eGifOpenFileName : string -> out_channelval eGifCloseFile : out_channel -> unitval eGifPutScreenDesc : out_channel -> screen_info -> unitval eGifPutImageDesc : out_channel -> gif_desc -> unitval eGifPutLine : out_channel -> bytes -> unitval eGifPutExtension : out_channel -> (int * string list) -> unit