WIDTH (function)

From QB64 Wiki
Revision as of 21:30, 12 March 2010 by imported>Clippy (New page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The _WIDTH function returns the width of an image.


Syntax

result& = _WIDTH[(imageHandle&)]


Description

  • If imageHandle& is omitted, it's assumed to be the handle of the current write page.
  • If the image specified by imageHandle& is in text mode, the number of characters per line is returned.
  • If the image specified by imageHandle& is in graphics mode, the number of pixels per line is returned.
  • If imageHandle& is an invalid handle, then an invalid handle error is returned.


See also



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page