---
title: "init(image:frame:rotation:opacity:contentsBounds:accessibilityDescription:allowedInteractions:id:)"
framework: paperkit
role: symbol
role_heading: Initializer
path: "paperkit/imagemarkup/init(image:frame:rotation:opacity:contentsbounds:accessibilitydescription:allowedinteractions:id:)-1ggjv"
---

# init(image:frame:rotation:opacity:contentsBounds:accessibilityDescription:allowedInteractions:id:)

Initializes and returns a new image markup from the specified parameters.

## Declaration

```swift
init?(image: NSImage, frame: CGRect, rotation: CGFloat = 0.0, opacity: CGFloat = 1.0, contentsBounds: CGRect = CGRect(x: 0, y: 0, width: 1, height: 1), accessibilityDescription: String? = nil, allowedInteractions: MarkupInteractions = .all, id: MarkupID<ImageMarkup> = MarkupID())
```

## Parameters

- `image`: The image content to display.
- `frame`: The frame of the image.
- `rotation`: The rotation in radians of the image. Defaults to 0.0 (no rotation).
- `opacity`: The opacity of the image, ranging from 0.0 (fully transparent) to 1.0 (fully opaque). Defaults to 1.0.
- `contentsBounds`: The portion of the image to display, in normalized coordinates from 0.0 to 1.0. Defaults to CGRect(x: 0, y: 0, width: 1, height: 1) (full image).
- `accessibilityDescription`: The accessibility description of the image for assistive technologies. Defaults to nil.
- `allowedInteractions`: The flags controlling the interactions users can perform. Defaults to .all.
- `id`: The identity of the image. Defaults to a unique id.

## Discussion

Discussion Image content is shown scaled to fill.
