summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/scripts/graphics/image.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-19 23:06:27 +0800
committerchai <chaifix@163.com>2019-03-19 23:06:27 +0800
commit1497dccd63a84b7ee2b229b1ad9c5c02718f2a78 (patch)
treef8d1bff50da13e126d08c7345653e002e293202d /Source/Asura.Framework/scripts/graphics/image.lua
parent5e2a973516e0729b225da9de0b03015dc5854ac4 (diff)
*rename
Diffstat (limited to 'Source/Asura.Framework/scripts/graphics/image.lua')
-rw-r--r--Source/Asura.Framework/scripts/graphics/image.lua40
1 files changed, 0 insertions, 40 deletions
diff --git a/Source/Asura.Framework/scripts/graphics/image.lua b/Source/Asura.Framework/scripts/graphics/image.lua
deleted file mode 100644
index f5ebaa2..0000000
--- a/Source/Asura.Framework/scripts/graphics/image.lua
+++ /dev/null
@@ -1,40 +0,0 @@
--- 图片资源
-AsuraEngine.Image = AsuraEngine.Asset.Extend("Image")
-
-local Image = AsuraEngine.Image
-
-function Image.Ctor(self, path)
- local simImage = AsuraEngine.SimImage.New(path)
- local w, h = simImage:GetSize()
- self.simImage = simImage
- self.width = w
- self.height = h
-end
-
-function Image.GetWidth(self)
- return self.simImage.GetWidth()
-end
-
-function Image.GetHeight(self)
- return self.simImage.GetHeight()
-end
-
-function Image.GetSize(self)
- return self.simImage.GetSize()
-end
-
---获得x,y位置的颜色值
-function Image.GetColor(self, x, y)
- return self.simImage.GetColor(x, y)
-end
-
---获得所有像素,返回到一个table里
-function Image.GetPixels(self)
- return self.simImage:GetPixels()
-end
-
---image不可再编辑器编辑,所以没有ToAsset方法
---function Image.ToAsset()
---end
-
-return Image \ No newline at end of file