Function

Rsvg-2.0Rsvgpixbuf_from_file_at_max_sizeDeprecated

  • Loads a new GdkPixbuf.Pixbuf from filename and returns it. This pixbuf is uniformly scaled so that the it fits into a rectangle of size max_width * max_height. 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

    • Deprecatedmax_width: number

      The requested max width

    • Deprecatedmax_height: number

      The requested max height

    Returns GdkPixbuf.Pixbuf

    A pixbuf, or null on error.