Method Setup
- Namespace
- Moments
- Assembly
- GrindFest.dll
Setup(bool, int, int, int, float, int, int)
Initializes the component. Use this if you need to change the recorder settings in a script. This will flush the previously saved frames as settings can't be changed while recording.
public void Setup(bool autoAspect, int width, int height, int fps, float bufferSize, int repeat, int quality)
Parameters
autoAspect
boolAutomatically compute height from the current aspect ratio
width
intWidth in pixels
height
intHeight in pixels
fps
intRecording FPS
bufferSize
floatMaximum amount of seconds to record to memory
repeat
int-1: no repeat, 0: infinite, >0: repeat count
quality
intQuality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF specification). Lower values (minimum = 1) produce better colors, but slow processing significantly. Higher values will speed up the quantization pass at the cost of lower image quality (maximum = 100).