Table of Contents

Method CalculateResolution

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

CalculateResolution(ImageNodeBase, int, int)

Calculates the effective working resolution for an image node based on its override mode and multiplier settings.

public static int CalculateResolution(this ImageNodeBase n, int graphResolution, int mainInputResolution)

Parameters

n ImageNodeBase

Image node to evaluate.

graphResolution int

Base graph resolution for the current request.

mainInputResolution int

Resolution of the node's main upstream input.

Returns

int

The final resolution rounded up to a multiple of 8.