The OpenD Programming Language

ImageSurface.fromPng

Creates a new image surface and initializes the contents to the given PNG file.

class ImageSurface
version(D_Ddoc)
static
fromPng
(
string file
)

Parameters

file string

name of PNG file to load

Note: Only available if cairo, cairoD and the cairoD user code were compiled with "version=CAIRO_HAS_PNG_FUNCTIONS"

Meta