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

# glassLozenge()

Creates a lozenge-shaped lens and distorts the image.

## Declaration

```swift
class func glassLozenge() -> any CIFilter & CIGlassLozenge
```

## Return Value

Return Value The distorted image.

## Discussion

Discussion This method applies the glass lozenge filter to an image. This effect distorts an image by creating a lozenge shape placed over the input image. The absolute threshold filter uses the following properties: The following code creates a filter that results in a large glass lozenge distorting the image: func glassLozenge(inputImage: CIImage) -> CIImage {     let filter = CIFilter.glassLozenge()     filter.inputImage = inputImage     filter.refraction = 1.7     filter.point0 = CGPoint(x: 150, y: 1050)     filter.point1 = CGPoint(x: 3050, y: 150)     return filter.outputImage! }

## See Also

### Filters

- [bumpDistortion()](coreimage/cifilter-swift.class/bumpdistortion().md)
- [bumpDistortionLinear()](coreimage/cifilter-swift.class/bumpdistortionlinear().md)
- [circleSplashDistortion()](coreimage/cifilter-swift.class/circlesplashdistortion().md)
- [circularWrap()](coreimage/cifilter-swift.class/circularwrap().md)
- [displacementDistortion()](coreimage/cifilter-swift.class/displacementdistortion().md)
- [droste()](coreimage/cifilter-swift.class/droste().md)
- [glassDistortion()](coreimage/cifilter-swift.class/glassdistortion().md)
- [holeDistortion()](coreimage/cifilter-swift.class/holedistortion().md)
- [lightTunnel()](coreimage/cifilter-swift.class/lighttunnel().md)
- [ninePartStretched()](coreimage/cifilter-swift.class/ninepartstretched().md)
- [ninePartTiled()](coreimage/cifilter-swift.class/nineparttiled().md)
- [pinchDistortion()](coreimage/cifilter-swift.class/pinchdistortion().md)
- [stretchCrop()](coreimage/cifilter-swift.class/stretchcrop().md)
- [torusLensDistortion()](coreimage/cifilter-swift.class/toruslensdistortion().md)
- [twirlDistortion()](coreimage/cifilter-swift.class/twirldistortion().md)
