---
title: "init(texture:size:highlight:offset:tintColor:)"
framework: Touch Controller
role: symbol
role_heading: Initializer
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+]
path: "touchcontroller/tccontrolimage/init(texture:size:highlight:offset:tintcolor:)"
---

# init(texture:size:highlight:offset:tintColor:)

Creates a new image with the specified texture, size, highlight texture, offset, and color tint.

## Declaration

```swift
init(texture: any MTLTexture, size: CGSize, highlight highlightTexture: (any MTLTexture)?, offset: CGPoint, tintColor: CGColor)
```

## Parameters

- `texture`: The Metal texture to use for the image.
- `size`: The size of the image in points.
- `highlightTexture`: The Metal texture to use for the image when highlighted. May be nil.
- `offset`: The offset from the center of the parent control in points.
- `tintColor`: The color tint to apply to the texture. The color ref is retained.

## Return Value

Return Value A new TCControlImage instance.

## See Also

### Creating a control image

- [init(cgImage:size:device:)](touchcontroller/tccontrolimage/init(cgimage:size:device:)-22z05.md)
- [init(texture:size:)](touchcontroller/tccontrolimage/init(texture:size:).md)
- [init(uiImage:size:device:)](touchcontroller/tccontrolimage/init(uiimage:size:device:)-3hqf.md)
