//
//  CRImageFilterCrop.h
//  CRGraphics
//
//  Created by Yaroslav Glushchenko on 6/27/09.
//  Copyright 2009 Corner-A. All rights reserved.
//

#import "CRCIImageFilter.h"

extern NSString* const CRImageFilterCropRectKey;

//////////////////////////////////////////////////////////////////////
// Crop filter
//////////////////////////////////////////////////////////////////////
@interface CRImageFilterCrop : CRCIImageFilter
{
	BOOL suspendUpdate;
}

// main properties
@property (nonatomic, assign) NSRect cropRect;

// wrappers for cropRect
@property (nonatomic, assign) CGFloat originX;
@property (nonatomic, assign) CGFloat originY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;

- (void)setDefaults;

@end