Method: Vips::Region#initialize

Defined in:
lib/vips/region.rb

#initialize(name) ⇒ Region

Returns a new instance of Region.

Raises:



46
47
48
49
50
51
# File 'lib/vips/region.rb', line 46

def initialize(name)
  pointer = Vips.vips_region_new name
  raise Vips::Error if pointer.null?

  super(pointer)
end