- Documentation
- Client functions
- getRecordingFrame
Function
getRecordingFrame
Returns the pixels of one recording frame (number from 1) in jpeg (default), png or plain format, e.g. for dxCreateTexture or saving a photo.
Syntax
string getRecordingFrame(element recording, int index [, string format = "jpeg"])Arguments
recordingelement- The recording.
indexint- Frame number from 1.
formatstring, optional = "jpeg"- Format.
Returns
Pixels or false.
Example
local rec = loadRecording("powtorki/ostatnia.avi")
local thumb = rec and dxCreateTexture(getRecordingFrame(rec, 1))
See also
getRecordingInfoReturns recording information: whether it runs (recording), the frame count, frames per second, the length in ms (duration), the image size, the data size in bytes (size) and the stop reason (stopReason).dxCreateTextureCreates a texture: from a resource image file, from pixels (plain,png,jpeg,dds) or an empty one of a given size. The texture is a material fordxDrawImage,dxDrawMaterial*3Dand shaders.