Structure

MPSSize

A size of a region in an image.

Declaration

struct MPSSize

Overview

The depth of a region is usually 1.0.

The double data type is used because some kernel operations require fractional precision—for example, the MPSImageLanczosScale filter.

Topics

Instance Properties

var depth: Double

The depth of the region, in pixels.

var height: Double

The height of the region, in pixels.

var width: Double

The width of the region, in pixels.