init(texture:size:)
Creates a new image with the specified texture and size.
Declaration
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
A new TCControlImage instance.