TorqueScript Reference
Image File Manipulation

Functions

bool CaptureScreenArea (posX, posY, width, height, fileName, fileType)
Integer png2jpg (pngFilename, [quality]?)

Detailed Description

Function Documentation

◆ CaptureScreenArea()

bool CaptureScreenArea ( posX ,
posY ,
width ,
height ,
fileName ,
fileType  )

Capture a specific area of the screen

◆ png2jpg()

Integer png2jpg ( pngFilename ,
[quality ] ?  )

Use the png2jpg function to save a PNG file specified by pngFilename as a similarly named JPEG file with the optionally specified quality.

Parameters
pngFilenameThe path and file name of the PNG file to convert.
qualityAn optional quality between 0 and 100. The default quality is 90.
Returns
Returns -1 if the file could not be opened, 0 on other failures, and 1 if the conversion worked