Function

Gdk-3.0Gdkcairo_set_source_pixbufSince 2.8

  • 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

    • cr: default.Context

      a cairo context

    • pixbuf: GdkPixbuf.Pixbuf
    • pixbuf_x: number

      X coordinate of location to place upper left corner of pixbuf

    • pixbuf_y: number

      Y coordinate of location to place upper left corner of pixbuf

    Returns void

    2.8