Post Reply 
Loading Graphics to Prime
05-25-2021, 08:01 PM (This post was last modified: 05-25-2021 08:04 PM by matalog.)
Post: #1
Loading Graphics to Prime
Has something changed about the way that the Prime handles colours and transparency, since 2013?

I got Deeph's img2prime, and converted a .png file on PC, then pasted the output text into a DIMGROB. You can see the results here vs the results of just loading a .png file directly (the .png loaded directly looks like a chrome ball).

I have also tried loading graphics via Tim Wessman's generator, and the pixels that should have been were not transparent.

Deeph wrote the convertor in PureBasic. I also use PureBasic now and then, and may be able to amend it to work with current colours as the Prime handles them.

Any ideas?


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
05-26-2021, 12:37 AM
Post: #2
RE: Loading Graphics to Prime
The color space used to be 16 bit (5 bits per color) but was revised to use 32 bit colors (8 bit per color and alpha).

Some functions took 8 bit per color numbers, but then converted down to the 16 bit format in the graphics objects. As I recall, RGB did this taking three 8 bit numbers and converting to the 16 bit format.

I don't remember exactly when this happened, but I pretty sure it was after 2013. I remember having a few programs that depended on the 16 bit format that had to be fixed.

513016415223221833242338122322514610315
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)