Image.GenericOperations on images in generic formats (many formats are supported).
Since the module is very generic, many of the functions are not implemented for particular formats. This exception is raised when it is the case.
module Pixel : sig ... endGeneric pixels.
type data =
(int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.tData contents of an image.
val width : t -> intWidth of an image.
val height : t -> intHeight of an image.
val pixel_format : t -> Pixel.formatPixel format of an image.
val make_rgb : Pixel.rgb_format -> ?stride:int -> int -> int -> data -> tCreate a new image of RGB format.
val blank : t -> unitval convert :
?proportional:bool ->
?scale_kind:RGBA32.Scale.kind ->
t ->
t ->
unitConvert a generic image from a format to another.