package bimage-unix

  1. Overview
  2. Docs

Source file image.ml

1
2
3
4
let create_mmap (type color) ?mode kind
    (module C : Bimage.COLOR with type t = color) ~filename w h =
  let data = Data.create_mmap ?mode kind ~filename (w * h * C.channels C.t) in
  Bimage.Image.of_data (module C) w h data