From WikiChip
Difference between revisions of "mirc/identifiers/$pic"
(Created page with "{{mirc title|$pic Identifier}}'''$pic''' returns size informations about .bmp, .jpg or .png filenames == Synopsis == <pre>$pic(filename)</pre> == Paramters == * '''filenam...") |
m (→Properties: Add new properties from 7.53) |
||
Line 12: | Line 12: | ||
* '''.height''' - Returns the height of the picture | * '''.height''' - Returns the height of the picture | ||
* '''.width''' - Returns the width of the picture | * '''.width''' - Returns the width of the picture | ||
− | * '''.size''' - | + | * '''.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 == | == Example == |
Revision as of 18:35, 13 April 2022
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$pic returns size informations about .bmp, .jpg or .png filenames
Synopsis
$pic(filename)
Paramters
- filename - The filename you want the size informations of
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