Page 2 of 2

Re: Convert color image to 24-bit or 8-bit grayscale

Posted: Sun Jan 21, 2018 9:19 pm
by bytecave
Hi Wilbert,

Not sure you're if you're still active here on the forums. I'd like to use your Grayscale routine in an open source game. What's the best way to attribute it to you? Thanks! --Rich
wilbert wrote:Here's my asm version module also if you want to compare the speed of that as well.
This time no SSE :shock: It will run on even the oldest hardware, is cross platform and supports both 24 and 32 bit images.
Grayscale::Grayscale(MyImage)

Quality optimized version

Code: Select all

DeclareModule Grayscale
  Declare Grayscale(Image)
EndDeclareModule
<...snip...>

Re: Convert color image to 24-bit or 8-bit grayscale

Posted: Mon Jan 22, 2018 7:13 am
by wilbert
bytecave wrote:I'd like to use your Grayscale routine in an open source game. What's the best way to attribute it to you?
You can add a comment to the module code itself like Grayscale Module by Wilbert.
You don't have to mention my name in the compiled version of your game. :)

Re: Convert color image to 24-bit or 8-bit grayscale

Posted: Tue Jan 23, 2018 3:35 am
by bytecave
wilbert wrote:You can add a comment to the module code itself like Grayscale Module by Wilbert.
You don't have to mention my name in the compiled version of your game. :)
That is great, thanks Wilbert. Really great code! --Rich

;
;Grayscale Module by Wilbert
;http://www.purebasic.fr/english/viewtopic.php?p=482418
;