Difference between revisions of "HEIGHT"

From QB64 Wiki
Jump to navigation Jump to search
imported>Cyperium
imported>Stylin
(updated layout)
Line 1: Line 1:
The QB64 '''_HEIGHT''' function returns the pixel height of an image handle created by the [[_LOADIMAGE]] function.
The {{KW|_HEIGHT}} function returns the height of an image.




{{PageSyntax}}
:<code>''result&'' = {{KW|_HEIGHT}}([{{Parameter|imageHandle&}}])</code>




''Syntax:'' height& = _HEIGHT(i&)
{{PageDescription}}
* If {{Parameter|imageHandle&}} is omitted, it's assumed to be the handle of the current write page.
* If the image specified by {{Parameter|imageHandle&}} is in text mode, the number of characters per column is returned.
* If the image specified by {{Parameter|imageHandle&}} is in graphics mode, the number of pixels per column is returned.
* If {{Parameter|imageHandle&}} is an invalid handle, then an [[ERROR Codes|invalid handle]] is returned.




''See also:'' [[_WIDTH (QB64)]], [[Bitmaps]]
{{PageSeeAlso}}
* {{KW|_WIDTH}}
* [[Bitmaps]]




 
{{PageNavigation}}
 
==Navigation:==
 
[[Keyword_Reference_-_Alphabetical|Go to Keyword Reference - Alphabetical]]
 
[[Keyword Reference - By usage|Go to Keyword Reference - By usage]]

Revision as of 03:50, 7 January 2010

The _HEIGHT function returns the height of an image.


Syntax

result& = _HEIGHT([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 column is returned.
  • If the image specified by imageHandle& is in graphics mode, the number of pixels per column is returned.
  • If imageHandle& is an invalid handle, then an invalid handle is returned.


See also



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page