Procedural File: ico.php
Source Location: /vendor/JPEXS/ico.php
Page Details:
Tags:
ICO_MAX_COLOR [line 38]
ICO_MAX_SIZE [line 40]
ICO_TRUE_COLOR [line 34]
ICO_XP_COLOR [line 36]
MAX_COLOR [line 54]
MAX_SIZE [line 58]
TRUE_COLOR [line 46]
XP_COLOR [line 50]
imageCreateFromExeIco [line 397]
resource imageCreateFromExeIco(
string $filename, int $icoIndex, [int $icoColorCount = 16], [int $icoSize = 16], [int $alphaBgR = 255], [int $alphaBgG = 255], [int $alphaBgB = 255])
|
|
Reads image from a icon in exe file
Tags:
Parameters
string |
$filename |
Target exefile |
int |
$icoIndex |
Index of the icon in exefile |
int |
$icoColorCount |
Icon color count (For multiple icons ico file) - 2,16,256, ICO_TRUE_COLOR, ICO_XP_COLOR or ICO_MAX_COLOR |
int |
$icoSize |
Icon width (For multiple icons ico file) or ICO_MAX_SIZE |
int |
$alphaBgR |
Background color R value for alpha-channel images (Default is White) |
int |
$alphaBgG |
Background color G value for alpha-channel images (Default is White) |
int |
$alphaBgB |
Background color B value for alpha-channel images (Default is White) |
imageCreateFromIco [line 72]
resource imageCreateFromIco(
string $filename, [int $icoColorCount = 16], [int $icoSize = 16], [int $alphaBgR = 255], [int $alphaBgG = 255], [int $alphaBgB = 255])
|
|
Reads image from a ICO file
Tags:
Parameters
string |
$filename |
Target ico file to load |
int |
$icoColorCount |
Icon color count (For multiple icons ico file) - 2,16,256, ICO_TRUE_COLOR, ICO_XP_COLOR or ICO_MAX_COLOR |
int |
$icoSize |
Icon width (For multiple icons ico file) or ICO_MAX_SIZE |
int |
$alphaBgR |
Background color R value for alpha-channel images (Default is White) |
int |
$alphaBgG |
Background color G value for alpha-channel images (Default is White) |
int |
$alphaBgB |
Background color B value for alpha-channel images (Default is White) |
imageIco [line 597]
void imageIco(
resource|array $images, [string $filename = ""])
|
|
Creates ico file from image resource(s)
Parameters
resource|array |
$images |
Target Image resource (Can be array of image resources) |
string |
$filename |
Target ico file to save icon to, If ommited or "", image is written to snadard output - use header("Content-type: image/x-icon"); |
jpexs_GetIconsInfo [line 351]
void jpexs_GetIconsInfo(
$filename)
|
|
Parameters
jpexs_inttodword [line 955]
void jpexs_inttodword(
$n)
|
|
Parameters
jpexs_inttoword [line 960]
void jpexs_inttoword(
$n)
|
|
Parameters
jpexs_readIcon [line 228]
void jpexs_readIcon(
$filename, $id, &$Ikona)
|
|
Parameters
jpexs_readResDirectoryEntry [line 543]
void jpexs_readResDirectoryEntry(
&$parentRes, $offset)
|
|
Internal function for reading exe icons
Parameters
saveExeIcon [line 420]
boolean saveExeIcon(
string $filename, [string $icoFileNameOrPath = ""], [int|array $iconIndex = -1])
|
|
Saves icon(s) from the exe file
Tags:
Parameters
string |
$filename |
Target exefile |
string |
$icoFileNameOrPath |
Filename to save ico or path (Default "") Path if you want more than 1 icon. If "", the filename is "$icoIndex.ico" |
int|array |
$iconIndex |
Index(es) of the icon in exefile (Default -1) If -1, all icons are saved, Can be an array of indexes. |
|
|