Instance Property

magnificationFilter

The filter used when increasing the size of the content.

Declaration

@property(copy) CALayerContentsFilter magnificationFilter;

Discussion

The possible values for this property are listed in Scaling Filters.

The default value of this property is kCAFilterLinear.

Figure 1 shows the difference between linear and nearest filtering when a 10 x 10 point image of a circle is magnified by a scale of 10.

Figure 1

Circle with different magnification filters

Circle with different magnification filters

The circle on the left uses kCAFilterLinear and the circle on the right uses kCAFilterNearest.

See Also

Layer Filters

filters

An array of Core Image filters to apply to the contents of the layer and its sublayers. Animatable.

compositingFilter

A CoreImage filter used to composite the layer and the content behind it. Animatable.

backgroundFilters

An array of Core Image filters to apply to the content immediately behind the layer. Animatable.

minificationFilter

The filter used when reducing the size of the content.

minificationFilterBias

The bias factor used by the minification filter to determine the levels of detail.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software