Facepunch.Steamworks Wiki

Steamworks.SteamScreenshots.AddScreenshot

Syntax

static Data.Screenshot? AddScreenshot( string filename, string thumbnail, int width, int height )

Description

Adds a screenshot to the user's screenshot library from disk. If a thumbnail is provided, it must be 200 pixels wide and the same aspect ratio as the screenshot, otherwise a thumbnail will be generated if the user uploads the screenshot. The screenshots must be in either JPEG or TGA format. The return value is a handle that is valid for the duration of the game process and can be used to apply tags. JPEG, TGA, and PNG formats are supported.

Arguments

string filename
string thumbnail
int width
int height

Returns

Page Links


Special Pages


Wikis

?

Render Time: 14ms

Session 0
DB GetPage 3
Generate Html 0
SaveChanges 8
Render Body 0
Render Sidebar 1