---
title: lanczosScaleTransform()
framework: coreimage
role: symbol
role_heading: Type Method
path: coreimage/cifilter-swift.class/lanczosscaletransform()
---

# lanczosScaleTransform()

Creates a high-quality, scaled version of a source image.

## Declaration

```swift
class func lanczosScaleTransform() -> any CIFilter & CILanczosScaleTransform
```

## Mentioned in

Processing an Image Using Built-in Filters

## Return Value

Return Value The adjusted image.

## Discussion

Discussion This method applies the Lanczos scale transform filter to an image. The effect creates the output image by scaling the input image based on the scale and aspect ratio properties provided. The Lanczos scale filter uses the following properties: The following code creates a filter that results in a smaller scaled image with high quality: func lanczosScale(inputImage: CIImage) -> CIImage {         let lanczosScaleFilter = CIFilter.lanczosScaleTransform()     lanczosScaleFilter.inputImage = inputImage     lanczosScaleFilter.scale =  0.3     lanczosScaleFilter.aspectRatio = 1     return lanczosScaleFilter.outputImage! }

## See Also

### Filters

- [bicubicScaleTransform()](coreimage/cifilter-swift.class/bicubicscaletransform().md)
- [edgePreserveUpsample()](coreimage/cifilter-swift.class/edgepreserveupsample().md)
- [keystoneCorrectionCombined()](coreimage/cifilter-swift.class/keystonecorrectioncombined().md)
- [keystoneCorrectionHorizontal()](coreimage/cifilter-swift.class/keystonecorrectionhorizontal().md)
- [keystoneCorrectionVertical()](coreimage/cifilter-swift.class/keystonecorrectionvertical().md)
- [perspectiveCorrection()](coreimage/cifilter-swift.class/perspectivecorrection().md)
- [perspectiveRotate()](coreimage/cifilter-swift.class/perspectiverotate().md)
- [perspectiveTransform()](coreimage/cifilter-swift.class/perspectivetransform().md)
- [perspectiveTransformWithExtent()](coreimage/cifilter-swift.class/perspectivetransformwithextent().md)
- [straighten()](coreimage/cifilter-swift.class/straighten().md)
