/* Copyright (c) 2011 Artjom Popov */


@class UTDerivedResource;

@interface UTDerivedImage : NSObject
{
@private
	UTDerivedResource *m_resource;
	CGSize m_size;
	CGFloat m_zoom;
	CGPoint m_focus;
	BOOL m_aspectFitSize;
	BOOL m_glossEffect;
	UIImage *m_image;
}

- (id)initWithURL:(NSURL *)url revision:(NSString *)revision size:(CGSize)size;
- (id)initWithURL:(NSURL *)url revision:(NSString *)revision size:(CGSize)size zoom:(CGFloat)zoom focus:(CGPoint)focus;

@property (nonatomic, assign, readonly) CGSize size;
@property (nonatomic, assign, readonly) CGFloat zoom;
@property (nonatomic, assign, readonly) CGPoint focus;
@property (nonatomic, assign) BOOL aspectFitSize;
@property (nonatomic, assign) BOOL glossEffect;
@property (nonatomic, assign) UIImage *image;

- (void)load;

@end
