---
title: "init(texture:size:)"
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:)"
---

# init(texture:size:)

Creates a new image with the specified texture and size.

## Declaration

```swift
convenience init(texture: any MTLTexture, size: CGSize)
```

## Parameters

- `texture`: The Metal texture to use for the image.
- `size`: The size of the image in points.

## 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:highlight:offset:tintColor:)](touchcontroller/tccontrolimage/init(texture:size:highlight:offset:tintcolor:).md)
- [init(uiImage:size:device:)](touchcontroller/tccontrolimage/init(uiimage:size:device:)-3hqf.md)
