package scope

  1. Overview
  2. Docs

Class Sdl_img.sdl_img

method valid : (unit, string) result

Check whether the formatted image is valid

method filetypes : string list

The list of supported file extensions

method filename : string

Filename of the formatted image

method height : int
method width : int
method save : string -> unit

Save the image to a file

method of_surf : (Tsdl.Sdl.surface -> Scope__Formats.Format.format) option

Convert from a Sdl.surface, optional

method to_surf : Tsdl.Sdl.surface option

Convert to a Sdl.surface if valid

OCaml

Innovation. Community. Security.