<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -",
    "macCatalyst: 18.1.0 -",
    "macOS: 15.1.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImagePlayground",
  "identifier" : "/documentation/ImagePlayground/ImagePlaygroundConcept/image(_:)-29ora",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Image Playground"
    ],
    "preciseIdentifier" : "s:15ImagePlayground0aB7ConceptV5imageyACSo10CGImageRefaFZ"
  },
  "title" : "image(_:)"
}
-->

# image(_:)

Creates a concept structure from the specified image object.

```
static func image(_ image: CGImage) -> ImagePlaygroundConcept
```

## Parameters

`image`

The image you want to pass to the diffusion model.

## Discussion

Call this method when you want to use an image as the basis for generating a
new image. Typically, you include other text-based concept structures in
addition to this one. Include at most one image among the collection of
concepts. Including more than one image yields unpredictable image results.

---

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)