package lablgtk3-rsvg2

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

librsvg bindings

type size_fun = int -> int -> int * int
val at_size : int -> int -> size_fun
val at_zoom : float -> float -> size_fun
val at_max_size : int -> int -> size_fun
val at_zoom_with_max : float -> float -> int -> int -> size_fun
val set_default_dpi : float -> unit
type error =
  1. | Failed
exception Error of error * string
val render_from_string : ?dpi:float -> ?size_cb:size_fun -> ?pos:int -> ?len:int -> string -> GdkPixbuf.pixbuf
  • raises Error

    if an error occurs loading data.

  • raises Sys_error

    if an error occurs while reading from the channel.

val render_from_file : ?dpi:float -> ?size_cb:size_fun -> string -> GdkPixbuf.pixbuf
  • raises Error

    if an error occurs loading data. *

    @raise Sys_error

    if an error occurs while reading from the file.

OCaml

Innovation. Community. Security.