Difference between revisions of "Printer.getPageSize"
From ComputerCraft Wiki
Smiley43210 (Talk | contribs) m (Changed parent api) |
SuicidalSTDz (Talk | contribs) m (Added integer tag) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=printer.getPageSize | |name=printer.getPageSize | ||
− | |returns=Width and Height of the Page in the Printer | + | |returns=[[int (type)|int]] Width and Height of the Page in the Printer |
|api=printer | |api=printer | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Revision as of 20:55, 3 June 2013
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
Example | |
Prints the size of a page. | |
Code |
local x, y = printer.getPageSize() |
Output | <width>, <height> |