On 12/12/2014 at 11:58, xxxxxxxx wrote:
Hello,
testing all available colormodes, it seems that the 16Bit varaibles are broken.
digging deeper I don´t understand why
bmp.GetColorMode()
gives me other values than
e.g. c4d.COLORBYTES_ARGBf
colorMode = bmp.GetColorMode()
print colorMode ,"colorMode"
#(1 byte = 8 bits)
#Grayscale
print c4d.COLORBYTES_GRAY, "8Bit Grayscale"
print c4d.COLORBYTES_AGRAY, "8Bit Grayscale + ALPHA"
#print c4d.COLORBYTES_GRAYw, "16Bit Grayscale"
#print c4d.COLORBYTES_AGRAYw, "16Bit Grayscale + ALPHA"
print c4d.COLORBYTES_GRAYf, "32Bit Grayscale"
print c4d.COLORBYTES_AGRAYf, "32Bit Grayscale + ALPHA"
#RGB
print c4d.COLORBYTES_RGB, "8Bit RGB" #/////inc 3 /////depth 24/////
print c4d.COLORBYTES_ARGB, "8Bit RGB + ALPHA" #/////inc 4 /////depth 32/////
#print c4d.COLORBYTES_RGBw, "16Bit RGB" #/////inc 6 /////depth 48/////
#print c4d.COLORBYTES_ARGBw, "16Bit RGB + ALPHA" #/////inc 8 /////depth 64/////
print c4d.COLORBYTES_RGBf, "32Bit RGB" #/////inc 12/////depth 96/////
print c4d.COLORBYTES_ARGBf, "32Bit RGB + ALPHA" #/////inc 16/////depth 128/////
#CMYK
print c4d.COLORBYTES_CMYK, "8Bit CMYK"
print c4d.COLORBYTES_ACMYK, "8Bit CMYK + ALPHA"
print c4d.COLORBYTES_MAX, "max"
# colorMode values
#5 =ARGB 8bit/////inc 4 /////depth 32/////c4d.COLORBYTES_ARGB
#21 =ARGB 16bit/////inc 8 /////depth 48/////c4d.COLORBYTES_ARGBw
#37 =ARGB 32bit/////inc 16/////depth 96/////c4d.COLORBYTES_ARGBf
any ideas ??
Thanks in advance
Martin