<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TouchController",
  "identifier" : "/documentation/TouchController/TCControlImage/init(texture:size:highlight:offset:tintColor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Touch Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)TCControlImage(im)initWithTexture:size:highlightTexture:offset:tintColor:"
  },
  "title" : "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.

```
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

A new `TCControlImage` instance.

---

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)