C_Social.GetScreenshotInfoByIndex

From Warcraft Wiki
Jump to navigation Jump to search
Links
Info
Added in 8.1.5

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.