> 8-Bit Graphics

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

> 8-Bit Graphics

Post by chris319 »

Requesting support for graphics with > 8 bits per channel (RGB) depth.

Existing functions could be modified like so:

Code: Select all

Result = Red(Color[,Depth])

Code: Select all

Result = Red(Color,10)
10- and 12-bit depths are starting to be used in video and high-end graphics.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: > 8-Bit Graphics

Post by chris319 »

Code: Select all

Structure pixl
    R.c
    G.c
    B.c 
EndStructure
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4946
Joined: Sun Apr 12, 2009 6:27 am

Re: > 8-Bit Graphics

Post by RASHAD »

Hi chris319 :)
RGB is RGB
But if you are ready for hard work with Freeimage you can create image with depth more than 8 in memory
But then you must have what the extra bits will have
In this case you got to do Decoder and Encoder for your new format
If you did that please give me version for free :D
Egypt my love
Post Reply