Garry's Mod Wiki

Revision Difference

Structures/RenderCaptureData#568049

<structure> <realm>Client</realm> <description>Used for <page>render.Capture</page>.</description> <fields> <item name="format" type="string">Format of the capture. Valid formats are: * `jpeg` or `jpg` * `png`</item>⤶ * `png`⤶ ⤶ As of version 2026.06.19:⤶ * `rgba`, `rgb` and `bgra` - Raw image data in given byte order. ⤶ Expected data size is `ImgWidth * ImgHeight * 4` (`ImgWidth * ImgHeight * 3` for `rgb`) ⤶ Each 4 (or 3 for `rgb`) bytes is one pixel, top to bottom left to right.⤶ </item>⤶ <item name="x" type="number">X coordinate of the capture origin</item> <item name="y" type="number">Y coordinate of the capture origin</item> <item name="w" type="number">Width of the capture</item> <item name="h" type="number">Height of the capture</item> <item name="quality" type="number">The quality of the capture. Affects jpeg only.</item> <item name="alpha" type="boolean" default="true">Set to false to capture an image with alpha channel set to fully opaque. Affects png only.</item> <item name="alpha" type="boolean" default="true">Set to false to capture an image with alpha channel set to fully opaque. Affects any format with alpha channel support, so not `jpg`.</item> </fields> </structure>