eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FixedPalette':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: FixedPalette


Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--Colormap
            |
            +--ColorPalette
               |
               +--FixedPalette
                  |
                  +--FixedPaletteWithAlpha

Package:
stx:libview
Category:
Graphics-Images-Support
Version:
rev: 1.6 date: 2017/08/25 10:38:12
user: cg
file: FixedPalette.st directory: libview
module: stx stc-classLibrary: libview

Description:


This class will (sooner or later) take over and/or redefine some of the Colormap functionality.
This migration will be done both to cleanup the code and for VW compatibility.

Notice: For now, the whole functionality is still in Colormap


Related information:

    Color
    Image
    Form

Class protocol:

instance creation
o  redShift: reds redMask: redm greenShift: grns greenMask: grnm blueShift: blus blueMask: blum


Instance protocol:

initialization
o  redShift: rs redMask: rm greenShift: gs greenMask: gm blueShift: bs blueMask: bm

printing & storing
o  displayString

o  printOn: aStream

o  storeInstVarsOn: aStream

o  storeOn: aStream

queries
o  alphaByteAt: index
return the (simulated) alphaByte at index.
Notice that index is 1..

o  bitsAlpha

o  bitsBlue

o  bitsGreen

o  bitsRed

o  blueByteAt: index
return the (simulated) blueByte at index.
Notice that index is 1..
usage example(s):
     (FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF) blueByteAt:16rFFFFFF+1  
     (FixedPalette redShift:10 redMask:16r1F greenShift:5 greenMask:16r1F blueShift:0 blueMask:16r1F) blueByteAt:16r7FFF+1  
     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) blueByteAt:16rFFFF+1  

     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) blueByteAt:0+1  
     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) blueByteAt:16r7FFF+1  

o  greenByteAt: index
return the (simulated) greenByte at index.
Notice that index is 1..
usage example(s):
     (FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF) greenByteAt:16rFFFFFF+1  
     (FixedPalette redShift:10 redMask:16r1F greenShift:5 greenMask:16r1F blueShift:0 blueMask:16r1F) greenByteAt:16r7FFF+1  
     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) greenByteAt:16rFFFF+1  

     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) greenByteAt:0+1  
     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) greenByteAt:16r7FFF+1  

o  isFixedPalette

o  redByteAt: index
return the (simulated) redByte at index.
Notice that index is 1..
usage example(s):
     (FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF) redByteAt:16rFFFFFF+1  
     (FixedPalette redShift:10 redMask:16r1F greenShift:5 greenMask:16r1F blueShift:0 blueMask:16r1F) redByteAt:16r7FFF+1  
     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) redByteAt:16rFFFF+1  

     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) redByteAt:0+1  
     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) redByteAt:16r7FFF+1  

o  size
return the number of (simulated) colors in this colormap
usage example(s):
     (FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF) size  
     (FixedPalette redShift:10 redMask:16r1F greenShift:5 greenMask:16r1F blueShift:0 blueMask:16r1F) size  
     (FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F) size  



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Fri, 22 Feb 2019 22:46:30 GMT