package glfw-ocaml

  1. Overview
  2. Docs

Image data for creating custom cursors and window icons.

type t = private {
  1. width : int;
  2. height : int;
  3. pixels : bytes;
}
val create : width:int -> height:int -> pixels:bytes -> t

Create an image from the supplied pixel data with the specified width and height.

  • raises Invalid_argument

    if a dimension is negative or if there is not enough data to make an image with the specified dimensions.