//
//  ECImageRef.h
//  SceneRenderProto
//
//  Created by 二鏡 on 11/11/14.
//  Copyright 2011年 二鏡庵. All rights reserved.
//

#import <Foundation/Foundation.h>

static const size_t gMaxImageSize = 4000;

@interface ECImageRef : NSObject <NSCoding>
{
    NSURL *url;
    CGImageSourceRef src;
}

- (id)initWithURL:(NSURL*)aURL;
- (NSURL*)URL;
- (CGSize)imageSize;
- (CGImageRef)image;
- (CGImageRef)thumbnail;
@end
