class Cairo::Surface

Public Instance Methods

to_pixbuf(options={}) click to toggle source
# File lib/gdk3/cairo.rb, line 67
def to_pixbuf(options={})
  src_x = options[:src_x] || 0
  src_y = options[:src_y] || 0
  w = options[:width]
  h = options[:height]
  if w.nil? and respond_to?(:width)
    w = width
  end
  if h.nil? and respond_to?(:height)
    h = height
  end
  to_pixbuf_raw(src_x, src_y, w, h)
end
Also aliased as: to_pixbuf_raw
to_pixbuf_raw(options={})
Alias for: to_pixbuf