Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type gradient = {
xform : float array;
spread : spread;
fx : float;
fy : float;
stops : gradient_stop array;
}
type text = {
xform : float array;
anchor : text_anchor;
style : text_style;
fontsize : float;
fontfamily : string;
s : string;
}
type shape = {
id : string;
fill : paint;
stroke : paint;
opacity : float;
stroke_width : float;
stroke_dash_offset : float;
stroke_dash_array : float array;
stroke_line_join : line_join;
stroke_line_cap : line_cap;
stroke_align : stroke_align;
miter_limit : float;
fill_rule : fill_rule;
visible : bool;
bounds : box;
payload : shape_payload;
}
module Image_data : sig ... end
val parse_from_file :
?units:units ->
?dpi:float ->
string ->
Image_data.t option
val parse : ?units:units -> ?dpi:float -> string -> Image_data.t option
val lift : Image_data.t -> image
module Rasterizer : sig ... end
type data8 =
(int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
val rasterize :
Rasterizer.t ->
Image_data.t ->
tx:float ->
ty:float ->
scale:float ->
dst:data8 ->
w:int ->
h:int ->
?stride:int ->
unit ->
unit