summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-framework/scripts/graphics/image.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-29 22:51:04 +0800
committerchai <chaifix@163.com>2019-03-29 22:51:04 +0800
commitc302f5ae5f9e30a28e487e8a764d9cc31546bbea (patch)
tree7f18bedeece950600336ea7ced7c52c468552c98 /source/libs/asura-lib-framework/scripts/graphics/image.lua
parent157530b8b6e11efc5573d5a0db8987a440197aa1 (diff)
*rename
Diffstat (limited to 'source/libs/asura-lib-framework/scripts/graphics/image.lua')
-rw-r--r--source/libs/asura-lib-framework/scripts/graphics/image.lua40
1 files changed, 0 insertions, 40 deletions
diff --git a/source/libs/asura-lib-framework/scripts/graphics/image.lua b/source/libs/asura-lib-framework/scripts/graphics/image.lua
deleted file mode 100644
index f5ebaa2..0000000
--- a/source/libs/asura-lib-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