forked from Meragon/Unity-WinForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnityGdiSprite.cs
More file actions
55 lines (51 loc) · 1.35 KB
/
Copy pathUnityGdiSprite.cs
File metadata and controls
55 lines (51 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
namespace Unity.API
{
using System.Drawing;
using System.Drawing.API;
public class UnityGdiSprite : ITexture
{
internal readonly UnityEngine.Sprite sprite;
public UnityGdiSprite(UnityEngine.Sprite spr)
{
sprite = spr;
}
public int Height
{
get { return (int)sprite.rect.height; }
}
public int Width
{
get { return (int)sprite.rect.width; }
}
public void Apply()
{
}
public void Clear(Color color)
{
}
public Color GetPixel(int x, int y)
{
throw new System.NotImplementedException();
}
public Color[] GetPixels()
{
throw new System.NotImplementedException();
}
public Color[] GetPixels(int x, int y, int width, int height)
{
throw new System.NotImplementedException();
}
public void SetPixel(int x, int y, Color color)
{
throw new System.NotImplementedException();
}
public void SetPixels(Color[] colors)
{
throw new System.NotImplementedException();
}
public void SetPixels(int x, int y, int width, int height, Color[] colors)
{
throw new System.NotImplementedException();
}
}
}