Load and Save BMP Images in Unity

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.

Load and Save BMP Images in Unity - Asset Store

๐Ÿค– Chat with AI

AI is typing

Suggested Posts

Seamless Save and Load System for Unity

Seamless Save and Load System for Unity Thumbnail

ESave Pro: Advanced Save and Load Solution

ESave Pro: Advanced Save and Load Solution Thumbnail

Easy Google Sign In and Data Saving for Unity

Easy Google Sign In and Data Saving for Unity Thumbnail

Auto Save and Version Control for Unity

Auto Save and Version Control for Unity Thumbnail

PS Layer: Unity Layer Hierarchy and Blending Modes

PS Layer: Unity Layer Hierarchy and Blending Modes Thumbnail

Interactive Dialogue and Quest System for Unity

Interactive Dialogue and Quest System for Unity Thumbnail