---
title: "init(boundsSize:requestHandler:)"
framework: mediaplayer
role: symbol
role_heading: Initializer
path: "mediaplayer/mpmediaitemartwork/init(boundssize:requesthandler:)"
---

# init(boundsSize:requestHandler:)

Creates a new image from existing artwork with the specified bounds.

## Declaration

```swift
init(boundsSize: CGSize, requestHandler: @escaping (CGSize) -> UIImage)
```

```swift
init(boundsSize: CGSize, requestHandler: @escaping (CGSize) -> NSImage)
```

## Parameters

- `boundsSize`: The original size of the artwork.
- `requestHandler`: A handler that the system calls for the requested artwork.

## Return Value

Return Value The newly resized artwork.

## Discussion

Discussion The request handler returns the image in the newly requested size. The requested size must be less than the boundsSize parameter.
