---
title: copy()
framework: coregraphics
role: symbol
role_heading: Instance Method
path: coregraphics/cgimage/copy()
---

# copy()

Creates a copy of a bitmap image.

## Declaration

```swift
func copy() -> CGImage?
```

## Return Value

Return Value An copy of the image.

## See Also

### Copying an image

- [copy(colorSpace:)](coregraphics/cgimage/copy(colorspace:).md)
