Compile fix
This commit is contained in:
@@ -1,23 +1,31 @@
|
|||||||
package lime.graphics;
|
package lime.graphics;
|
||||||
|
|
||||||
|
|
||||||
import lime.utils.UInt8Array;
|
|
||||||
|
|
||||||
|
|
||||||
class ImageData {
|
class ImageData {
|
||||||
|
|
||||||
|
|
||||||
public var data:UInt8Array;
|
public var data:ImageDataType;
|
||||||
public var height:Int;
|
public var height:Int;
|
||||||
public var width:Int;
|
public var width:Int;
|
||||||
|
|
||||||
|
|
||||||
public function new () {
|
public function new (data:ImageDataType = null, width:Int = 0, height:Int = 0) {
|
||||||
|
|
||||||
|
|
||||||
|
this.data = data;
|
||||||
|
this.width = width;
|
||||||
|
this.height = height;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if js
|
||||||
|
typedef ImageDataType = js.html.Image;
|
||||||
|
#elseif flash
|
||||||
|
typedef ImageDataType = flash.display.BitmapData;
|
||||||
|
#else
|
||||||
|
typedef ImageDataType = lime.utils.UInt8Array;
|
||||||
|
#end
|
||||||
Reference in New Issue
Block a user