eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Depth48Image':

Home

everywhere
www.exept.de
for:
[back]

Class: Depth48Image


Inheritance:

   Object
   |
   +--Image
      |
      +--Depth48Image

Package:
stx:libview
Category:
Graphics-Images
Version:
rev: 1.1 date: 2009/08/03 09:45:50
user: cg
file: Depth48Image.st directory: libview
module: stx stc-classLibrary: libview
Author:
Claus Gittinger

Description:


this class represents 48 bit images as possibly provided by png 3x16bit rgb images.
Such images are normally not used in real world applications, as humans cannot differentiate 
more than roughly 200 distinct color tone values. However, in image processing (false-color) applications,
such a fine grain image makes sense and is sometimes used.


Related information:

    Depth1Image
    Depth2Image
    Depth4Image
    Depth8Image
    Depth16Image
    Depth24Image
    Depth32Image
    ImageReader

Class protocol:

queries
o  defaultPhotometric
return the default photometric pixel interpretation

o  imageDepth
return the depth of images represented by instances of
this class - here we return 48


Instance protocol:

accessing-pixels
o  pixelAtX: x y: y
retrieve a pixel at x/y; return a pixelValue.
Pixels start at x=0 , y=0 for upper left pixel, end at
x = width-1, y=height-1 for lower right pixel

o  pixelAtX: x y: y put: aPixelValue
set the pixel at x/y to aPixelValue.
Pixels start at x=0 , y=0 for upper left pixel, end at
x = width-1, y=height-1 for lower right pixel

initialization
o  initialize

queries
o  bitsPerPixel
return the number of bits per pixel

o  bitsPerRow
return the number of bits in one scanline of the image

o  bytesPerRow
return the number of bytes in one scanline of the image



ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 08:50:22 GMT