equal
deleted
inserted
replaced
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 |