Function

Rsvg-2.0Rsvgpixbuf_from_file_at_sizeDeprecated

  • Loads a new GdkPixbuf.Pixbuf from filename and returns it. This pixbuf is scaled from the size indicated to the new size indicated by width and height. If both of these are -1, then the default size of the image being loaded is used. The caller must assume the reference to the returned pixbuf. If an error occurred, error is set and NULL is returned.

    Parameters

    • Deprecatedfilename: string

      A file name

    • Deprecatedwidth: number

      The new width, or -1

    • Deprecatedheight: number

      The new height, or -1

    Returns GdkPixbuf.Pixbuf

    A pixbuf, or null on error.