Difference between revisions of "Printer.getPageSize"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
m (Changed parent api)
Line 3: Line 3:
 
|name=printer.getPageSize
 
|name=printer.getPageSize
 
|returns=Width and Height of the Page in the Printer
 
|returns=Width and Height of the Page in the Printer
|api=peripheral
+
|api=printer
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Returns the size of the page.
 
|desc=Returns the size of the page.

Revision as of 16:06, 3 May 2013


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 printer

Examples

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