I want to ask the question who here know where people got this skin file http://www.mediafire.com/file/hhdjd713e223t5f/skin.yml/file steve.png to skin.yml is anyone know?
Here, I wrote a simple application in C# that can convert those files to PNGs and vice-versa: https://github.com/HimbeersaftLP/MinecraftByteArrImageConverter Note: The file you sent isn't a yml file, it's just binary data. I attached the file you sent converted to png (also please don't use mediafire)
You'd just need to create a new image with the right size and cut those parts together (the outer shell (those headphones) are going to be a tad more difficult though).
Use the System.Drawing API to create a blank image to copy those pixels onto. What are you trying to use this for?
Unless you want to set up an ASP.NET Core webserver, you probably want to rewrite this in sth like php or node.js (whatever you set up) then.
Yes, in fact I even did it a few days ago because I was bored: https://himbeer.me/skin?name=himbeersaftlp It reads directly from the <playername.dat> file in the server folder. But it has a big problem: The code is baaaaad, like really fucking bad. I wrote the world's worst NBT parser to decode the dat file and then used php-gd to create the image. I'm not sure if I should send the code as it's a really bad example and using it could potentially give you security risks and such.
My page gets the skin data from the player.dat, so it works even when the server is offline and without depending on PocketMine's API. (as an afterthought, I probably should have used PMMP's NBT Library)