---
title: MPSImageLanczosScale
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsimagelanczosscale
---

# MPSImageLanczosScale

A filter that resizes and changes the aspect ratio of an image using Lanczos resampling.

## Declaration

```swift
class MPSImageLanczosScale
```

## Overview

Overview You can use this filter to enlarge or reduce the size of an image, or to change the aspect ratio of an image. The filter uses a Lanczos resampling algorithm, that typically produces better quality for photographs, but is slower than linear sampling that uses GPU texture units. Lanczos downsampling does not require a low pass filter to be applied before it is used. Because the resampling function has negative lobes, Lanczos can result in ringing artifacts near sharp edges, making it less suitable for vector art.

## Topics

### Initializers

- [init(coder:device:)](metalperformanceshaders/mpsimagelanczosscale/init(coder:device:).md)
- [init(device:)](metalperformanceshaders/mpsimagelanczosscale/init(device:).md)

### Properties

- [MPSScaleTransform](metalperformanceshaders/mpsscaletransform.md)

## Relationships

### Inherits From

- [MPSImageScale](metalperformanceshaders/mpsimagescale.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Image Manipulation Filters

- [MPSImageConversion](metalperformanceshaders/mpsimageconversion.md)
- [MPSImageScale](metalperformanceshaders/mpsimagescale.md)
- [MPSImageBilinearScale](metalperformanceshaders/mpsimagebilinearscale.md)
- [MPSImageTranspose](metalperformanceshaders/mpsimagetranspose.md)
