Arbortext Command Language > Functions by Alphabetical Listing > oid_graphic_size
  
oid_graphic_size
oid_graphic_size (oid, width, height, switch)
This function returns the size of the image displayed for the graphic or equation identified by oid. The image width in pixels is returned in the output variable given by width, the height in pixels in the output variable given by height.
If switch is 0 (the default), oid_graphic_size returns the displayed size of the graphic, which may be scaled. If switch is 1, then oid_graphic_size returns the defined size of the graphic.
This function returns 1 (true) if it succeeds, and 0 (false) if it fails, for example, if oid is not an equation or graphic. If it fails, the function writes an error message to the $ERROR predefined variable.
Related Topics
oid_write_graphic function