Skip to main content
Module

x/sdl2/mod.ts>Surface.fromFile

SDL2 module for Deno
Latest
method Surface.fromFile
import { Surface } from "https://deno.land/x/sdl2@0.9.0/mod.ts";

Create a surface from a file.

Parameters

path: string

the path to the image file

Returns

a Surface