printer.getPageSize

From ComputerCraft Wiki
Revision as of 20:55, 3 June 2013 by SuicidalSTDz (Talk | contribs) (Added integer tag)

Jump to: navigation, search


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

Examples

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