Image.getColorSpace

Gets the name of the image's color space.

class Image
string
getColorSpace
()

Return Value

Type: string

when getColorSpace() succeed, it returns the following values. Otherwise, it returns null.

  • DeviceGray
  • DeviceRGB
  • DeviceCMYK
  • Indexed

Meta