|
Class: Depth16Image
Object
|
+--Image
|
+--Depth16Image
- Package:
- stx:libview
- Category:
- Graphics-Images
- Version:
- rev:
1.27
date: 2023/08/28 09:23:07
- user: cg
- file: Depth16Image.st directory: libview
- module: stx stc-classLibrary: libview
this class represents 16 bit images.
Only the minimum protocol is implemented here; much more is
needed for higher performance operations on depth16 images.
(however, 16bit images are seldom used, so falling back into the
slow general methods from Image should not hurt too much ..)
copyrightCOPYRIGHT (c) 1995 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
queries
-
defaultPhotometric
-
return the default photometric pixel interpretation
-
imageDepth
-
return the depth of images represented by instances of
this class - here we return 16
accessing-pixels
-
pixelAtX: x y: y
-
retrieve a pixel at x/y; return a pixelValue (0..16rFFFF).
The interpretation of the returned value depends on the photometric
and the colormap. See also Image>>atX:y:)
Pixels start at x=0 , y=0 for upper left pixel, end at
x = width-1, y=height-1 for lower right pixel
-
pixelAtX: x y: y put: aPixelValue
-
set the pixel at x/y to aPixelValue (0..16rFFFF).
The interpretation of the pixelValue depends on the photometric
and the colormap. (see also: Image>>atX:y:put:)
Pixels start at x=0 , y=0 for upper left pixel, end at
x = width-1, y=height-1 for lower right pixel
-
rowAt: y putAll: pixelArray startingAt: startIndex
-
store a single rows bits from bits in the pixelArray argument;
The interpretation of the pixel values depends on the photometric.
Notice: row coordinate starts at 0.
initialization
-
initialize
-
magnification
-
magnifyRowFrom: srcBytes offset: srcStart into: dstBytes offset: dstStart factor: mX
-
magnify a single pixel row - can only magnify by integer factors
queries
-
bitsPerPixel
-
return the number of bits per pixel
-
bitsPerRow
-
return the number of bits in one scanline of the image
-
bytesPerRow
-
return the number of bytes in one scanline of the image
-
valueFromRGB: rgb
-
given a color as rgb-value, with 8 bits per component and r in high 8 bits,
return the corresponding pixel value.
The red component is in the high 8 bits.
Non-representable colors return nil.
|