Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

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[]

Battle for Azeroth Patch 8.1.5 (2019-03-12): Moved to C_Social.GetScreenshotInfoByIndex. The previous alias is deprecated. [1]
Warlords of Draenor Patch 6.1.0 (2015-02-24): Added as C_Social.GetScreenshotByIndex.

Advertisement