Class: Cairo::ImageSurface

Inherits:
Surface
  • Object
show all
Defined in:
lib/gir_ffi-cairo/image_surface.rb

Overview

Surface subclass for (bitmap) images.

Class Method Summary collapse

Methods inherited from Surface

#finish, #flush

Class Method Details

.create(format, width, height) ⇒ Object



6
7
8
9
# File 'lib/gir_ffi-cairo/image_surface.rb', line 6

def self.create(format, width, height)
  ptr = Lib.cairo_image_surface_create format, width, height
  wrap ptr
end