ImageSurface.fromPng

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

  1. ImageSurface fromPng(string file)
    class ImageSurface
    version(D_Ddoc)
    static
    fromPng
    (
    string file
    )
  2. ImageSurface 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