Depth32Image.st
branchjv
changeset 7855 46203abe7d57
parent 7542 9e125aa140f9
parent 7819 1dd77ab4b48f
child 8420 76e39223f5ab
equal deleted inserted replaced
7854:295325696e0d 7855:46203abe7d57
   860 !Depth32Image methodsFor:'initialization'!
   860 !Depth32Image methodsFor:'initialization'!
   861 
   861 
   862 initialize
   862 initialize
   863     super initialize.
   863     super initialize.
   864     samplesPerPixel := 4.
   864     samplesPerPixel := 4.
   865     bitsPerSample := #(8 8 8 8).
   865     bitsPerSample := #[8 8 8 8].
   866 
   866 
   867     "Created: / 27-05-2007 / 14:09:16 / cg"
   867     "Created: / 27-05-2007 / 14:09:16 / cg"
       
   868     "Modified: / 30-01-2017 / 19:32:13 / stefan"
   868 ! !
   869 ! !
   869 
   870 
   870 !Depth32Image methodsFor:'magnification'!
   871 !Depth32Image methodsFor:'magnification'!
   871 
   872 
   872 magnifyRowFrom:srcBytes offset:srcStart
   873 magnifyRowFrom:srcBytes offset:srcStart
   978 bitsPerSample
   979 bitsPerSample
   979     "return the number of bits per sample.
   980     "return the number of bits per sample.
   980      The return value is an array of bits-per-plane."
   981      The return value is an array of bits-per-plane."
   981 
   982 
   982     bitsPerSample notNil ifTrue:[^ bitsPerSample].
   983     bitsPerSample notNil ifTrue:[^ bitsPerSample].
   983     ^ #(8 8 8 8)
   984     ^ #[8 8 8 8]
       
   985 
       
   986     "Modified: / 30-01-2017 / 19:23:31 / stefan"
   984 !
   987 !
   985 
   988 
   986 blueBitsOf:pixel
   989 blueBitsOf:pixel
   987     "given a pixel-value, return the blue component as byteValue (0..255)"
   990     "given a pixel-value, return the blue component as byteValue (0..255)"
   988 
   991