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...") |
(→Properties) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
== Synopsis == | == Synopsis == | ||
− | <pre>$pic(filename)</pre> | + | <pre>$pic(filename,N,M)</pre> |
== Paramters == | == Paramters == | ||
* '''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 == | ||
* '''.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 (returns file size for .exe) |
+ | * '''.frames''' - Returns the number of frames in the Nth icon | ||
+ | * '''.delay''' - Returns the delay for the next frame | ||
+ | * '''.icons''' - Returns the total number of icons in the file | ||
== Example == | == Example == |
Latest revision as of 02:34, 8 June 2023
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[edit]
$pic(filename,N,M)
Paramters[edit]
- 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[edit]
- .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 (returns file size for .exe)
- .frames - Returns the number of frames in the Nth icon
- .delay - Returns the delay for the next frame
- .icons - Returns the total number of icons in the file
Example[edit]
//echo -a $pic(C:\K.png)
Compatibility[edit]
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[edit]
$window $getdot $width $height $inellipse $inrect $inroundrect $inpoly $onpoly $rgb $mouse