VTextureSize:
Filter:
Scintillator/Classes (extension) | Quarks > Scintillator > VGens > Image Sampling

VTextureSize
ExtensionExtension

VGen providing sampler image dimensions in pixels.

Description

Loosely analogous to the BufFrames UGen, this VGen provides a 2D vector containing the width and height of the sampled texture. This can be useful, for example, for adjusting the width and height of image sampling to respect aspect ratio.

Supported Rates: frame, shape, pixel

Class Methods

.fr

.sr

.pr

Make a VTextureSize VGen at the requested rate.

Arguments:

image

The ScinImageBuffer object to return the dimensions of.

Returns:

A 2D vector containing the dimensions of the supplied image in (width, height) order.

dimensions

inputoutput
image2