summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-framework/scripts/graphics/image.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-06-06 00:12:17 +0800
committerchai <chaifix@163.com>2019-06-06 00:12:17 +0800
commit8bfe54676f728076a92d802bb5d064e58265c8f2 (patch)
tree5d8ea1bd063f2d01dc979915db546449d68277bf /source/libs/asura-lib-framework/scripts/graphics/image.lua
parent88b882ed0b432c6aff2063213e2f793a36dd25f7 (diff)
-文件夹名
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