<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/ImageColorTransformer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents21ImageColorTransformerV"
  },
  "title" : "ImageColorTransformer"
}
-->

# ImageColorTransformer

An image color transformer.

```
struct ImageColorTransformer
```

## Topics

### Creating a color transformer

[`init(brightness: Float?, contrast: Float?, hue: Float?, saturation: Float?)`](/documentation/CreateMLComponents/ImageColorTransformer/init(brightness:contrast:hue:saturation:))

Creates an image color transformer.

### Getting the properties

[`var brightness: Float?`](/documentation/CreateMLComponents/ImageColorTransformer/brightness)

The brightness adjustment, between 0.0 and 1.0.

[`var contrast: Float?`](/documentation/CreateMLComponents/ImageColorTransformer/contrast)

The contrast adjustment, between 0.0 and 1.0.

[`var hue: Float?`](/documentation/CreateMLComponents/ImageColorTransformer/hue)

The hue adjustment, between 0.0 and 1.0.

[`var saturation: Float?`](/documentation/CreateMLComponents/ImageColorTransformer/saturation)

The saturation adjustment, between 0.0 and 1.0.

### Applying the transformation

[`func applied(to: CIImage, eventHandler: EventHandler?) -> CIImage`](/documentation/CreateMLComponents/ImageColorTransformer/applied(to:eventHandler:))

Performs the image color transformation operation on the input image.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Transformer`](/documentation/CreateMLComponents/Transformer)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)