author | Claus Gittinger <cg@exept.de> |
Wed, 24 Jan 2018 22:11:41 +0100 | |
changeset 8263 | 46c6448fdf2c |
parent 8262 | a9845a7cad69 |
child 8264 | a37a81b3942b |
--- a/Image.st Wed Jan 24 22:11:13 2018 +0100 +++ b/Image.st Wed Jan 24 22:11:41 2018 +0100 @@ -12348,7 +12348,7 @@ newImage newBits bitsPerPixel newBytesPerRow newMask value srcRow pixelArray shrink| - photometric == #rgb ifFalse:[ + (photometric == #rgb or:[photometric == #rgba]) ifFalse:[ "/ self assert:false message:'only works with rgb images'. ^ (Depth32Image fromImage:self photometric:#rgb) hardSmoothingMagnifiedBy:scaleArg