class

Vips::Region

Inherits Vips::VipsObject / Vips::GObject / Reference / Object

Wrap libvips VipsRegion object. A region is a small part of an image. You use regions to read pixels out of images without storing the entire image in memory. Note: At least libvips 8.8 is needed.

Constructors

new(image : Image)

Make a region on an image

Source

Instance methods

fetch(left : Int32, top : Int32, width : Int32, height : Int32) : Bytes

Fetch an area of pixels. left Left edge of area to fetch. top Top edge of area to fetch. width Width of area to fetch. height Height of area to fetch. Returns Bytes filled with pixel data.

Source
height

height of pixels held by region

Source
width

width of pixels held by region

Source