printer.getPageSize

From ComputerCraft Wiki
Revision as of 18:50, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:LuaCoreFunctions)

Jump to: navigation, search


Grid Redstone.png  Function printer.getPageSize
Returns the size of the page.
Syntax printer.getPageSize()
Returns Width and Height of the Page in the Printer
Part of ComputerCraft
API peripheral

Examples

Grid paper.png  Example
Prints the size of a page.
Code
local x, y = printer.getPageSize()
print(x ..", ".. y)
Output <width>, <height>