Facepunch.Steamworks Wiki



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


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.


string filename
string thumbnail
int width
int height