Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_Social.GetScreenshotInfoByIndex

From Wowpedia
Jump to: navigation, search

Returns the display resolution of a screenshot.

screenWidth, screenHeight = C_Social.GetScreenshotInfoByIndex(index)

Arguments

index 
number - index of the screenshot. Does not persist between sessions.

Returns

screenWidth 
number - width of the screen in pixels.
screenHeight 
number - height of the screen in pixels.

Example

Prints the screenshot information of this session.

for i = 1, C_Social.GetLastScreenshotIndex() do
	local width, height = C_Social.GetScreenshotInfoByIndex(i)
	print(i, width, height)
end

Patch changes

See also