TorqueScript Reference

- Main Page
- Related Pages
- Modules
- Classes

Functions
Image File Manipulation
Function Categories

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

## Detailed Description

## Function Documentation

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

Capture a specific area of the screen

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

  pngFilename | The path and file name of the PNG file to convert.
  quality | An 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