equal
deleted
inserted
replaced
69 |
69 |
70 !Depth48Image methodsFor:'accessing-pixels'! |
70 !Depth48Image methodsFor:'accessing-pixels'! |
71 |
71 |
72 pixelAtX:x y:y |
72 pixelAtX:x y:y |
73 "retrieve a pixel at x/y; return a pixelValue. |
73 "retrieve a pixel at x/y; return a pixelValue. |
|
74 The interpretation of the returned value depends on the photometric |
|
75 and the colormap. See also Image>>atX:y:) |
74 Pixels start at x=0 , y=0 for upper left pixel, end at |
76 Pixels start at x=0 , y=0 for upper left pixel, end at |
75 x = width-1, y=height-1 for lower right pixel. |
77 x = width-1, y=height-1 for lower right pixel. |
76 The pixel value contains r/g/b in msb order (i.e. r at high, a at low bits)" |
78 The pixel value contains r/g/b in msb order (i.e. r at high, a at low bits)" |
77 |
79 |
78 |pixelIndex "{ Class: SmallInteger }"| |
80 |pixelIndex "{ Class: SmallInteger }"| |
86 + (bytes unsignedInt16At:pixelIndex+4 MSB:true). |
88 + (bytes unsignedInt16At:pixelIndex+4 MSB:true). |
87 ! |
89 ! |
88 |
90 |
89 pixelAtX:x y:y put:aPixelValue |
91 pixelAtX:x y:y put:aPixelValue |
90 "set the pixel at x/y to aPixelValue. |
92 "set the pixel at x/y to aPixelValue. |
|
93 The interpretation of the pixelValue depends on the photometric |
|
94 and the colormap. (see also: Image>>atX:y:put:) |
91 Pixels start at x=0 , y=0 for upper left pixel, end at |
95 Pixels start at x=0 , y=0 for upper left pixel, end at |
92 x = width-1, y=height-1 for lower right pixel" |
96 x = width-1, y=height-1 for lower right pixel" |
93 |
97 |
94 |pixelIndex "{ Class: SmallInteger }"| |
98 |pixelIndex "{ Class: SmallInteger }"| |
95 |
99 |