Function

Gdk-4.0Gdkcairo_set_source_pixbufDeprecated 4.20

  • Sets the given pixbuf as the source pattern for cr.

    The pattern has an extend mode of cairo.Extend.NONE and is aligned so that the origin of pixbuf is pixbuf_x, pixbuf_y.

    Parameters

    • Deprecatedcr: default.Context

      a cairo context

    • Deprecatedpixbuf: GdkPixbuf.Pixbuf
    • Deprecatedpixbuf_x: number

      X coordinate of location to place upper left corner of pixbuf

    • Deprecatedpixbuf_y: number

      Y coordinate of location to place upper left corner of pixbuf

    Returns void

    since 4.20: Use cairo_set_source_surface() and gdk_texture_download()