فهرست منبع

added clone()

ncannasse 11 سال پیش
والد
کامیت
c25e76d533
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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