Method | Description | |
---|---|---|
generateAvatarFromSkin ( $resource, integer $size, $view = 'f', $base64 = false ) : resource |
Cut and resize to get avatar from skin, HD support by |
|
generatePreviewFromCape ( $resource ) | ||
generatePreviewFromSkin ( resource $resource, integer $size, boolean | string $side = false, boolean $base64 = false, integer $gap = 4 ) : resource | Generate skin preview |
Method | Description | |
---|---|---|
imageflip ( &$result, &$img, $rx, $ry, $x, $y, $size_x = null, $size_y = null ) |
public static generateAvatarFromSkin ( $resource, integer $size, $view = 'f', $base64 = false ) : resource | ||
$size | integer | |
return | resource |
public static generatePreviewFromSkin ( resource $resource, integer $size, boolean | string $side = false, boolean $base64 = false, integer $gap = 4 ) : resource | ||
$resource | resource | |
$size | integer | |
$side | boolean | string | 'front' or 'back' |
$base64 | boolean | Generate image from base64 string |
$gap | integer | Gap size between front & back preview |
return | resource |