Hello everybody,
i'm trying to include in my app (made with c#)
a function that will convert my BNR (which ,should be in rgb5a)
into a a bitmap for windows.
There's my problem : i've searched the web for the BNR format
(how colors are packed in the file's bytes) but i couldn't find
anything ( i'm @ 1kb/s with a handphone ... :/ )
i thought that it could be like this : on 2 bytes (16bits) there's
5bits for Red , 5 for Green , 5 for Blue and the last one for Alpha...
i've tested shift operators and the &= operator to get
4bytes(RGB8A8 [bmp?]) with the only 2 ones from the BNR,
but it always gives me black pic with some green stuffs lol.
please help!![]()
thanks in advance and sorry sorry sorry for my english
i'm french ....
li9uid
"farewell" lol
-----------------------------------------------------------------------
Hello to coding Gods => Crusader,Costis,Titanik,F|RES


Reply With Quote






