Difference between revisions of "Printer.getPageSize"
From ComputerCraft Wiki
SuicidalSTDz (Talk | contribs) m (Added integer tag) |
(Changing int to number) |
||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=printer.getPageSize | |name=printer.getPageSize | ||
| − | |returns= | + | |returns={{type|number}} Width and Height of the Page in the Printer |
|api=printer | |api=printer | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
Revision as of 14:03, 18 July 2013
| Returns the size of the page. | |
| Syntax | printer.getPageSize() |
| Returns | number Width and Height of the Page in the Printer |
| Part of | ComputerCraft |
| API | printer |
Examples
| Prints the size of a page. | |
| Code |
local x, y = printer.getPageSize() |
| Output | <width>, <height> |