---
title: "draw(_:in:by:options:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgcontext/draw(_:in:by:options:)"
---

# draw(_:in:by:options:)

## Declaration

```swift
func draw(_ image: CGImage, in rect: CGRect, by toneMapping: CGToneMapping = .default, options: CFDictionary?) -> Bool
```

## See Also

### Instance Methods

- [resetClip()](coregraphics/cgcontext/resetclip().md)
- [setEDRTargetHeadroom(_:)](coregraphics/cgcontext/setedrtargetheadroom(_:).md)
