VTextureSize
VGen providing sampler image dimensions in pixels.
See also: VSampler ScinImageBuffer
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
VTextureSize.fr(image)
VTextureSize.sr(image)
VTextureSize.pr(image)
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
input |
output |
image |
2 |
Last modified July 28, 2020: Update for a 0.0.7 Scintillator release (#5) (0177d81)