<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ImagePaint/init(image:sourceRect:scale:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI10ImagePaintV5image10sourceRect5scaleAcA0C0V_So6CGRectV14CoreFoundation7CGFloatVtcfc"
  },
  "title" : "init(image:sourceRect:scale:)"
}
-->

# init(image:sourceRect:scale:)

Creates a shape-filling shape style.

```
init(image: Image, sourceRect: CGRect = CGRect(x: 0, y: 0, width: 1, height: 1), scale: CGFloat = 1)
```

## Parameters

`image`

The image to be drawn.

`sourceRect`

A unit-space rectangle defining how much of the source
image to draw. The results are undefined if `sourceRect` selects
areas outside the `[0, 1]` range in either axis.

`scale`

A scale factor applied to the image during rendering.

---

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)