gaGetOutputPixels()

Syntax

gaGetOutputPixels()

Example

recorder = ofxQTKitAVScreenRecorder()

function setup()
    recorder:setup("Built-in Microphone","QTCompressionOptionsVoiceQualityAACAudio")
end

function update()
	
    if recorder:getIsRecording() then
	recorder:addFrame(gaGetOutputPixels())
    end

    recorder:update()
end

function draw()
    gaBackground(ofRandomuf(),ofRandomuf(),ofRandomuf(),0.1)
	
    ofSetColor(0)
    ofCircle(gaMouseX(),gaMouseY(),200)
end

function keyReleased()
    if gaKey() == string.byte('r') then
	recorder:startNewRecording(gaDataPath("exportFile"))
    elseif gaKey() == string.byte('s') then
	recorder:finishMovie(true)
    end
end

Description

The pixel level reference of the GAmuza output window

Returns

«ofPixels, The output window reference in ofPixels format