---
title: "withRenderingMode(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiimage/withrenderingmode(_:)"
---

# withRenderingMode(_:)

Returns a new version of the image that uses the specified rendering mode.

## Declaration

```swift
func withRenderingMode(_ renderingMode: UIImage.RenderingMode) -> UIImage
```

## Parameters

- `renderingMode`: The rendering mode to use for the new image.

## Return Value

Return Value A new image object with the specified rendering mode.

## See Also

### Related Documentation

- [renderingMode](uikit/uiimage/renderingmode-swift.property.md)

### Changing the image attributes

- [withConfiguration(_:)](uikit/uiimage/withconfiguration(_:).md)
- [applyingSymbolConfiguration(_:)](uikit/uiimage/applyingsymbolconfiguration(_:).md)
- [imageFlippedForRightToLeftLayoutDirection()](uikit/uiimage/imageflippedforrighttoleftlayoutdirection().md)
- [withHorizontallyFlippedOrientation()](uikit/uiimage/withhorizontallyflippedorientation().md)
- [withAlignmentRectInsets(_:)](uikit/uiimage/withalignmentrectinsets(_:).md)
- [resizableImage(withCapInsets:)](uikit/uiimage/resizableimage(withcapinsets:).md)
- [resizableImage(withCapInsets:resizingMode:)](uikit/uiimage/resizableimage(withcapinsets:resizingmode:).md)
- [imageWithoutBaseline()](uikit/uiimage/imagewithoutbaseline().md)
- [withBaselineOffset(fromBottom:)](uikit/uiimage/withbaselineoffset(frombottom:).md)
- [UIImage.Configuration](uikit/uiimage/configuration-swift.class.md)
- [UIImage.SymbolConfiguration](uikit/uiimage/symbolconfiguration-swift.class.md)
