Squeak Class Documentation category index | class index  
 
ColorMap
  category: Graphics-Primitives
  superclass: Object
  subclasses:

No comment. Sorry.

instance methods
  accessing
  alphaMask
alphaMask:
alphaShift
alphaShift:
at:
at:put:
blueMask
blueMask:
blueShift
blueShift:
colors
greenMask
greenMask:
greenShift
greenShift:
inverseMap
masks
redMask
redMask:
redShift
redShift:
rgbaBitMasks
shifts

  comparing
  =
hash

  pixel mapping
  mapPixel:
mappingTo:
pixelMap:

  private
  setShifts:masks:colors:

  testing
  isColormap
isFixed
isIndexed

class methods
  instance creation
  colors:
mapBitsFrom:to:
mappingFrom:to:
mappingFromARGB:
mappingToARGB:
masks:shifts:
shifts:masks:
shifts:masks:colors:

instance methods
  accessing top  
 

alphaMask


 

alphaMask:


 

alphaShift


 

alphaShift:


 

at:

Primitive. Assumes receiver is indexable. Answer the value of an
indexable element in the receiver. Fail if the argument index is not an
Integer or is out of bounds. Essential. See Object documentation
whatIsAPrimitive.


 

at:put:

Primitive. Assumes receiver is indexable. Store the argument value in
the indexable element of the receiver indicated by index. Fail if the
index is not an Integer or is out of bounds. Or fail if the value is not of
the right type for this kind of collection. Answer the value that was
stored. Essential. See Object documentation whatIsAPrimitive.


 

blueMask


 

blueMask:


 

blueShift


 

blueShift:


 

colors


 

greenMask


 

greenMask:


 

greenShift


 

greenShift:


 

inverseMap

Return the inverse map of the receiver


 

masks


 

redMask


 

redMask:


 

redShift


 

redShift:


 

rgbaBitMasks

Return the rgba bit masks for the receiver


 

shifts


  comparing top  
 

=

Return true if the receiver is equal to aColorMap


 

hash

Hash is re-implemented because #= is re-implemented


  pixel mapping top  
 

mapPixel:

Perform a forward pixel mapping operation


 

mappingTo:

Compute a new color map through the receiver and aColorMap.
Both maps are assumed to be mappings into canonical ARGB space


 

pixelMap:

Perform a reverse pixel mapping operation


  private top  
 

setShifts:masks:colors:


  testing top  
 

isColormap


 

isFixed

Return true if the receiver does not use a lookup mechanism for pixel mapping


 

isIndexed

Return true if the receiver uses a lookup mechanism for pixel mapping


class methods
  instance creation top  
 

colors:


 

mapBitsFrom:to:

Return an array consisting of the shift and the mask for
mapping component values out of srcBitMask and into dstBitMask.
While this computation is somewhat complicated it eases the batch
conversion of all the pixels in BitBlt.


 

mappingFrom:to:

Return a color map mapping from the array of source bit masks
to the array of dest bit masks.


 

mappingFromARGB:

Return a ColorMap mapping from canonical ARGB space into dstBitMasks


 

mappingToARGB:

Return a ColorMap mapping from srcBitMasks into canonical ARGB space


 

masks:shifts:


 

shifts:masks:


 

shifts:masks:colors: