Explorar o código

added clone()

ncannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
c25e76d533
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      hxd/BitmapData.hx

+ 4 - 0
hxd/BitmapData.hx

@@ -126,6 +126,10 @@ abstract BitmapData(InnerData) {
 		this.dispose();
 		#end
 	}
+
+	public function clone() {
+		return sub(0,0,width,height);
+	}
 	
 	public function sub( x, y, w, h ) : BitmapData {
 		#if flash