fix: use alpha=255 only if the color is < 0xffffff

If the test passes we suppose the color is in the 0xAARRGGBB format and use the already defined alpha value. If the number does not encode the alpha value of the color we consider it to be fully opaque.