Structure

vImage.Options

Set flags on vImage operations to specify processing options.

Declaration

struct Options

Topics

Type Properties

static let backgroundColorFill: vImage.Options

A flag that uses the background color for missing pixels.

static let copyInPlace: vImage.Options

A flag that copies the value of the edge pixel in the source to the destination.

static let doNotClamp: vImage.Options

A flag that disables clamping in some conversions to floating-point formats.

static let doNotTile: vImage.Options

A flag that disables vImage internal tiling routines.

static let getTempBufferSize: vImage.Options

A flag that returns the minimum temporary buffer size for the operation, given the parameters provided.

static let hdrContent: vImage.Options

A flag that uses HDR-aware methods.

static let highQualityResampling: vImage.Options

A flag that uses a higher quality, slower resampling filter for geometry operations.

static let imageExtend: vImage.Options

A flag that extends the edges of the image infinitely.

static let leaveAlphaUnchanged: vImage.Options

A flag that restricts the operation to red, green, and blue channels only.

static let noAllocate: vImage.Options

A flag that prevents vImage from allocating additional storage.

static let noFlags: vImage.Options

A flag that sets the behavior to the default.

static let printDiagnosticsToConsole: vImage.Options

A flag that prints a debug message if the operation fails.

static let truncateKernel: vImage.Options

A flag that uses only the part of the kernel that overlaps the image.

Initializers

init()

Creates an empty option set.

init<S>(S)

Creates a new set from a finite sequence of items.

init(arrayLiteral: vImage.Options...)

Creates a set containing the elements of the given array literal.

Instance Properties

var isEmpty: Bool

A Boolean value that indicates whether the set has no elements.

Instance Methods

func contains(vImage.Options) -> Bool

Returns a Boolean value that indicates whether a given element is a member of the option set.

func formIntersection(vImage.Options)

Removes all elements of this option set that are not also present in the given set.

func formSymmetricDifference(vImage.Options)

Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.

func formUnion(vImage.Options)

Inserts the elements of another set into this option set.

func insert(vImage.Options) -> (inserted: Bool, memberAfterInsert: vImage.Options)

Adds the given element to the option set if it is not already a member.

func intersection(vImage.Options) -> vImage.Options

Returns a new option set with only the elements contained in both this set and the given set.

func isDisjoint(with: vImage.Options) -> Bool

Returns a Boolean value that indicates whether the set has no members in common with the given set.

func isStrictSubset(of: vImage.Options) -> Bool

Returns a Boolean value that indicates whether this set is a strict subset of the given set.

func isStrictSuperset(of: vImage.Options) -> Bool

Returns a Boolean value that indicates whether this set is a strict superset of the given set.

func isSubset(of: vImage.Options) -> Bool

Returns a Boolean value that indicates whether the set is a subset of another set.

func isSuperset(of: vImage.Options) -> Bool

Returns a Boolean value that indicates whether the set is a superset of the given set.

func remove(vImage.Options) -> vImage.Options?

Removes the given element and all elements subsumed by it.

func subtract(vImage.Options)

Removes the elements of the given set from this set.

func subtracting(vImage.Options) -> vImage.Options

Returns a new set containing the elements of this set that do not occur in the given set.

func symmetricDifference(vImage.Options) -> vImage.Options

Returns a new option set with the elements contained in this set or in the given set, but not in both.

func union(vImage.Options) -> vImage.Options

Returns a new option set of the elements contained in this set, in the given set, or in both.

func update(with: vImage.Options) -> vImage.Options?

Inserts the given element into the set.

Relationships

Conforms To