---
title: "init(_:scale:orientation:label:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/image/init(_:scale:orientation:label:)"
---

# init(_:scale:orientation:label:)

Creates a labeled image based on a Core Graphics image instance, usable as content for controls.

## Declaration

```swift
init(_ cgImage: CGImage, scale: CGFloat, orientation: Image.Orientation = .up, label: Text)
```

## Parameters

- `cgImage`: The base graphical image.
- `scale`: The scale factor for the image, with a value like 1.0, 2.0, or 3.0.
- `orientation`: The orientation of the image. The default is doc://com.apple.SwiftUI/documentation/SwiftUI/Image/Orientation/up.
- `label`: The label associated with the image. SwiftUI uses the label for accessibility.

## See Also

### Creating an image for use as a control

- [init(_:bundle:label:)](swiftui/image/init(_:bundle:label:).md)
- [init(_:variableValue:bundle:label:)](swiftui/image/init(_:variablevalue:bundle:label:).md)
