presentkim-pm / png-converter

[virion] Converter to convert png file to SkinImage
MIT License
11 stars 1 forks source link

How to use this? #1

Closed Altamash347 closed 3 years ago

Altamash347 commented 3 years ago

I need this but IDK how does it works

PresentKim commented 3 years ago

This is just a library that provides static methods.

Example...

use kim\present\converter\png\PngConverter;
use pocketmine\network\mcpe\protocol\types\SkinImage;

/** @var SkinImage $skinImage */
$skinImage = PngConverter::toSkinImageFromFile("path/your/png/file");

This is virion project. You can use it with poggit.


If you don't know virions usage, Just copy this code into your plugin.

You are free to use the MIT licensed sources.