| Inherits from | |
| Conforms to | |
| Framework | Library/Frameworks/QuartzCore.framework |
| Availability | Mac OS X v10.4 and later
|
| Companion guide | |
| Declared in | CIFilterShape.h |
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.
– insetByX:Y:
– intersectWith:
– intersectWithRect:
– transformBy:interior:
– unionWith:
– unionWithRect:
Creates a filter shape object and initializes it with a rectangle.
+ (id)shapeWithRect:(CGRect)r
A rectangle. The filter shape object will contain the smallest integral rectangle specified by this argument.
CIFilterShape.hInitializes a filter shape object with a rectangle.
- (id)initWithRect:(CGRect)r
A rectangle. Core Image uses the rectangle specified by integer parts of the values in the CGRect data structure.
An initialized CIFilterShape object, or nil if the method fails.
CIFilterShape.hModifies a filter shape object so that it is inset by the specified x and y values.
- (CIFilterShape *)insetByX:(int)dx Y:(int)dy
A value that specifies an inset in the x direction.
A value that specifies an inset in the y direction.
CIFilterShape.hCreates a filter shape object that represents the intersection of the current filter shape and the specified filter shape object.
- (CIFilterShape *)intersectWith:(CIFilterShape *)s2
A filter shape object.
The filter shape object that results from the intersection.
CIFilterShape.hCreates a filter shape that represents the intersection of the current filter shape and a rectangle.
- (CIFilterShape *)intersectWithRect:(CGRect)r
A rectangle. Core Image uses the rectangle specified by integer parts of the width and height.
The filter shape that results from the intersection
CIFilterShape.hCreates a filter shape that results from applying a transform to the current filter shape.
- (CIFilterShape *)transformBy:(CGAffineTransform)m interior:(BOOL)flag
A transform.
NO specifies that the new filter shape object can contain all the pixels in the transformed shape (and possibly some that are outside the transformed shape). YES specifies 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).
The transformed filter shape object.
CIFilterShape.hCreates a filter shape that results from the union of the current filter shape and another filter shape object.
- (CIFilterShape *)unionWith:(CIFilterShape *)s2
A filter shape object.
The filter shape object that results from the union.
CIFilterShape.hCreates a filter shape that results from the union of the current filter shape and a rectangle.
- (CIFilterShape *)unionWithRect:(CGRect)r
A rectangle. Core Image uses the rectangle specified by integer parts of the width and height.
CIFilterShape.h
Last updated: 2006-12-07