<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.2 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPMediaItemArtwork/init(boundsSize:requestHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPMediaItemArtwork(im)initWithBoundsSize:requestHandler:"
  },
  "title" : "init(boundsSize:requestHandler:)"
}
-->

# init(boundsSize:requestHandler:)

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

```
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.

- size: The new size for the image.

## Return Value

The newly resized artwork.

## Discussion

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

---

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)