From WikiChip
Difference between revisions of "mirc/identifiers/$pic"
< mirc‎ | identifiers

(Synopsis)
(Paramters)
Line 8: Line 8:
  
 
* '''filename''' - The filename you want the size informations of
 
* '''filename''' - The filename you want the size informations of
 +
* '''N''' - The Nth icon in the file, optional if only one icon in the file, used with property
 +
* '''M''' - The Mth frame for the Nth icon, used with property
  
 
== Properties ==
 
== Properties ==

Revision as of 02:33, 8 June 2023

$pic returns size informations about .bmp, .jpg or .png filenames


Synopsis

$pic(filename,N,M)

Paramters

  • filename - The filename you want the size informations of
  • N - The Nth icon in the file, optional if only one icon in the file, used with property
  • M - The Mth frame for the Nth icon, used with property

Properties

  • .height - Returns the height of the picture
  • .width - Returns the width of the picture
  • .size - Return the product of the width by the height, this value is returned by default if no property is specified
  • .frames - Returns the number of frames in a file.
  • .delay - Returns the delay
  • .icons - Returns the icon

Example

//echo -a $pic(C:\K.png)

Compatibility

Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

$window $getdot $width $height $inellipse $inrect $inroundrect $inpoly $onpoly $rgb $mouse