[COTDC] 57 - ColorMap

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[COTDC] 57 - ColorMap

laurent laffont
Today:  ColorMap


Comment Of The Day Contest - One Day One Comment
Rules: 
#1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s).
#2: If you cannot comment it, deprecate it.
Laurent
Reply | Threaded
Open this post in threaded view
|

Re: [COTDC] 57 - ColorMap

Fernando olivero-2
I'm a transformation of pixel values. I apply up to four masks and
shits to compute the transformed pixel value.

I'm used when applying a BitBlt transfer, whenever pixels from a
source to a destination have diferent depths. For further information
refer to BitBlt class comments.

To see me in action evaluate: BitBlt exampleColorMap

Fernando

On Mon, May 2, 2011 at 8:52 PM, laurent laffont
<[hidden email]> wrote:
> Today:  ColorMap
>
> Comment Of The Day Contest - One Day One Comment
> Rules:
> #1: Each day a not commented class is elected. Each day the best comment
> will be integrated with name of the author(s).
> #2: If you cannot comment it, deprecate it.
> Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
> Laurent

cbc
Reply | Threaded
Open this post in threaded view
|

Re: [COTDC] 57 - ColorMap

cbc
Is this the class that is responsible for white becoming not-white,
and black not-black, when moving from a lower 16 to 32 bits?

-Chris

Reply | Threaded
Open this post in threaded view
|

Re: [COTDC] 57 - ColorMap

laurent laffont
In reply to this post by Fernando olivero-2
Thanks Fernando ! BitBlt examples are funny :)

Laurent

On Mon, May 2, 2011 at 11:13 PM, Fernando Olivero <[hidden email]> wrote:
I'm a transformation of pixel values. I apply up to four masks and
shits to compute the transformed pixel value.

I'm used when applying a BitBlt transfer, whenever pixels from a
source to a destination have diferent depths. For further information
refer to BitBlt class comments.

To see me in action evaluate: BitBlt exampleColorMap

Fernando

On Mon, May 2, 2011 at 8:52 PM, laurent laffont
<[hidden email]> wrote:
> Today:  ColorMap
>
> Comment Of The Day Contest - One Day One Comment
> Rules:
> #1: Each day a not commented class is elected. Each day the best comment
> will be integrated with name of the author(s).
> #2: If you cannot comment it, deprecate it.
> Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
> Laurent