CIFilterShape Class Reference
| Inherits from | |
| Conforms to | |
| Framework | Library/Frameworks/QuartzCore.framework |
| Availability | OS X v10.4 and later |
| Companion guide | |
| Declared in | CIFilterShape.h |
Overview
The CIFilterShape class describes the bounding shape of a filter and the domain of definition (DOD) of a filter operation. You use CIFilterShape objects in conjunction with Core Image classes, such as CIFilter, CIKernel, and CISampler, to create custom filters.
Class Methods
shapeWithRect:
Creates a filter shape object and initializes it with a rectangle.
Parameters
- r
A rectangle. The filter shape object will contain the smallest integral rectangle specified by this argument.
Availability
- OS X v10.4 and later.
See Also
Declared In
CIFilterShape.hInstance Methods
initWithRect:
Initializes a filter shape object with a rectangle.
Parameters
- r
A rectangle. Core Image uses the rectangle specified by integer parts of the values in the
CGRectdata structure.
Return Value
An initialized CIFilterShape object, or nil if the method fails.
Availability
- OS X v10.4 and later.
See Also
Declared In
CIFilterShape.hinsetByX:Y:
Modifies a filter shape object so that it is inset by the specified x and y values.
Parameters
- dx
A value that specifies an inset in the x direction.
- dy
A value that specifies an inset in the y direction.
Availability
- OS X v10.4 and later.
Declared In
CIFilterShape.hintersectWith:
Creates a filter shape object that represents the intersection of the current filter shape and the specified filter shape object.
Parameters
- s2
A filter shape object.
Return Value
The filter shape object that results from the intersection.
Availability
- OS X v10.4 and later.
See Also
Declared In
CIFilterShape.hintersectWithRect:
Creates a filter shape that represents the intersection of the current filter shape and a rectangle.
Parameters
- rect
A rectangle. Core Image uses the rectangle specified by integer parts of the width and height.
Return Value
The filter shape that results from the intersection
Availability
- OS X v10.4 and later.
See Also
Declared In
CIFilterShape.htransformBy:interior:
Creates a filter shape that results from applying a transform to the current filter shape.
Parameters
- m
A transform.
- flag
NOspecifies that the new filter shape object can contain all the pixels in the transformed shape (and possibly some that are outside the transformed shape).YESspecifies that the new filter shape object can contain a subset of the pixels in the transformed shape (but none of those outside the transformed shape).
Return Value
The transformed filter shape object.
Availability
- OS X v10.4 and later.
Declared In
CIFilterShape.hunionWith:
Creates a filter shape that results from the union of the current filter shape and another filter shape object.
Parameters
- s2
A filter shape object.
Return Value
The filter shape object that results from the union.
Availability
- OS X v10.4 and later.
See Also
Declared In
CIFilterShape.hunionWithRect:
Creates a filter shape that results from the union of the current filter shape and a rectangle.
Parameters
- rect
A rectangle. Core Image uses the rectangle specified by integer parts of the width and height.
Availability
- OS X v10.4 and later.
See Also
Declared In
CIFilterShape.h© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-12-07)