You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
700 B
28 lines
700 B
14 years ago
|
|
||
|
//
|
||
|
// ImageData.h
|
||
|
//
|
||
|
// Copyright (c) 2010 LearnBoost <tj@learnboost.com>
|
||
|
//
|
||
|
|
||
|
#ifndef __NODE_IMAGE_DATA_H__
|
||
|
#define __NODE_IMAGE_DATA_H__
|
||
|
|
||
|
#include "Canvas.h"
|
||
|
#include "PixelArray.h"
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
class ImageData: public node::ObjectWrap {
|
||
|
public:
|
||
|
static void Initialize(Handle<Object> target);
|
||
|
static Handle<Value> New(const Arguments &args);
|
||
|
static Handle<Value> GetWidth(Local<String> prop, const AccessorInfo &info);
|
||
|
static Handle<Value> GetHeight(Local<String> prop, const AccessorInfo &info);
|
||
|
inline PixelArray *pixelArray(){ return _arr; }
|
||
|
ImageData(PixelArray *arr): _arr(arr) {}
|
||
|
~ImageData() { delete _arr; };
|
||
|
private:
|
||
|
PixelArray *_arr;
|
||
|
};
|
||
|
|
||
|
#endif
|