Both Dib and Raw cannot be set at the same time. One of the following must be set and only one at a time: {Alpha, Argb, Cmyk, Colormapped, Gray, HighGray, Rgb, Rgb555 or Rgb565} For HighGray, the BitsPerPixel must be from 8-16 For Rgb555 or Rgb565, the BitsPerPixel must be 16. For Rgb, the BitsPerPixel must be 24. For Gray or ColorMapped, the BitsPerPixel must be 1, 4 or 8. For Alpha, the BitsPerPixel must be 8. For Cmyk or Argb, the BitsPerPixel must be 32.