package imagelib

  1. Overview
  2. Docs
type compression_method =
  1. | RGB
  2. | Bitfields
type bits_per_pixel =
  1. | BPP_1
  2. | BPP_4
  3. | BPP_8
  4. | BPP_16
  5. | BPP_24
  6. | BPP_32
module HeaderVersion : sig ... end
type bitmap_info_header = {
  1. header_version : HeaderVersion.t;
  2. size : int;
  3. width : int;
  4. height : int;
  5. color_planes : int;
  6. bits_per_pixel : bits_per_pixel;
  7. compression_method : compression_method;
  8. image_data_size : int;
  9. horizontal_ppm : int;
  10. vertical_ppm : int;
  11. palette_colors : int;
  12. important_colors : int;
}
type t = {
  1. file_header : FileHeader.t;
  2. info_header : bitmap_info_header;
  3. bitfields : bitfields option;
  4. palette : string option;
}
val int_of_bpp : bits_per_pixel -> int
val read_info_header : ImageUtil.chunk_reader -> (bitmap_info_header, [> errors ]) result
val read_bitfield_palette : FileHeader.t -> bitmap_info_header -> ImageUtil.chunk_reader -> (bitfields option * string option, [> errors ]) result
val read : ImageUtil.chunk_reader -> (t, [> errors ]) result
OCaml

Innovation. Community. Security.