Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 508 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 508 Bytes

AndroidPNG2BMP

Convert Android PNG to Windows Bitmap

Usage:

//get your png byte array...
byte[] pngBytes = howeverYouWant();

//new instance of Converter
Converter converter = new Converter();

//convert the bytes
byte[] bmpBytes = converter.convert(pngBytes);

//do whatever you want with them
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(pathTo_yourFile));
bos.write(bmpBytes);
bos.flush();
bos.close();