Contains code and standards for the insertion of CloudCoins into PNG.
- Add new png.
Allows the user to target a PNG image from the "png" folder.
- Select your png.
Allows the user to target a PNG image from the "Image Bank" folder.
- Select your CloudCoins.
Allows a user to select one or multiple CloudCoin stacks found in the Bank folder.
- Insert the CloudCoins into the PNG.
Inserts the CloudCoins as a png chunk with the chunk type designator of cLDc.
- CloudCoins to Printouts folder.
Searches the file for cLDc chunk types, copies the information to the printouts folder.
Creates a new image without the CloudCoin meta data.
The current implementation is a console app built in VS-Code, to be upgraded to a multi-platform application.
it serves as a proof of concept for storing CloudCoins in the meta tags of PNG files.
png = new PngClass();
Prompt the user for an image path. use the path to build the PngClass.
string filepath = SelectNewPNG("./Images");
//PngClass.cs
setpath(filepath); //done
updatePNG();
Prompt the user to select an existing image from the ImageBank folder. use the path to build the PngClass.
png = new PngClass(true);
//PngClass.cs
string filepath = SelectNewPNG("./ImageBank");
setpath(filepath); //done
updatePNG();
Allows the user to stage CloudCoins in the ImageClass.
png.stageCoins();
//PngClass.cs
setHasStagedCoins();
setStagedValue();
Splits the png before the IEND chunk, appends the CloudCoins then the IEND chunk.
if(png.hasStagedCoins)
png.SaveCoins();
png.updatePNG();
//PngClass.cs
setworkingname();
updatePNG();
write();
Saves any CloudCoins stored in an image folder to the Printouts folder. Duplicates the image without the CloudCoin data.
png.removeCoins();
//PngClass.cs
updatePNG();
write(coin.ccData, "./Printouts/"+coin.name);