Unity does not natively support BMP image format for loading and saving via code. This package fills this gap, enabling you to easily load and save BMP images in your Unity projects. With Simple BMP, you can load BMP images from file paths or byte arrays, and save them as BMP files or encode them into Texture2D objects.
The package provides the following methods for working with BMP images:
- Load a BMP image from a file path using UnityBMP.Load(string path)
- Load a BMP image from a byte array using UnityBMP.Load(byte[] bytes)
- Save a Texture2D as a BMP file using UnityBMP.Save(string path, Texture2D texture)
- Encode a Texture2D into a BMP image using UnityBMP.Encode(Texture2D texture)
- Encode a BMP image from scratch using UnityBMP.Encode(int width, int height, Color32[] pixels)
Special thanks to Draลพen ล oronda for the C# library, and AomAm from Flaticon for the asset icon.





