RIM vs Bitmaps

First of all, you may not know what RIM is. RIM stands for Choacury Raster Image, I designed to be like a Bitmap but basically better, specifically for the use in ChoacuryOS.

Bitmaps have many limitations including them not including transparency by default. RIM however fully supports transparency. I made this utility called RIMTils, which allows you to create, convert, get information about RIMs and more.

I am planning on making a compressed version of this, but that’ll take quite a long time to develop.

Limitations

I’ve been doing some testing and the maximum square image that the RIMTils utility can create (Limited by std::vector) was 23,170, which was roughly 2 GB in file size. I still need to do some more testing on this.

Colour channels for RIM and Bitmaps

FormatChannel 1Channel 2Channel 3Channel 4
RIMRedGreenBlueAlpha
BitmapBlueGreenRed

I still don’t know why Bitmaps use BGR instead of RGB, but they do.

Using the RIMTils utility

First of all, you’ll need to compile it yourself as we haven’t properly released it yet. It works best on Windows and hasn’t been tested on anything else, but might work on Linux (who knows). You can get it from here: TeamChoacury/RIMTils: Utilities for the RIM format.

Converting between RIM and BMP (Bitmap)

Assuming you have everything set up correctly so you can access RIMTils as a global command (So you can run RIMTILS from any directory):

RIMTils convert -f "path/to/bitmap.bmp" -t "path/to/rim.rim" -m ToRIM # BMP -> RIM
RIMTils convert -f "path/to/rim.rim" -t "path/to/rim.rim" -m ToBMP    # RIM -> BMP

Making a new RIM

Again, assuming you have everything set up correctly:

# Creates a new RIM 23170x23170 pixels (2 GB)
RIMTils new -d "path/to/rim.rim" -w 23170 -h 23170

Getting information about a RIM

RIMTils info "path/to/rim.rim"

Using the RIMView utility

RIMView is a windows-only application, which just uses RIMTils behind the scene.

RIMView "path/to/rim.rim"

Loading


Discover more from WTDawson

Subscribe to get the latest posts sent to your email.

Leave a Reply