using System; using UnityEngine; namespace Gif.Components { // Token: 0x02000002 RID: 2 public class Image { // Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000450 public Image(int width, int height) { this.width = width; this.height = height; this.colors = new Color32[width * height]; } // Token: 0x06000002 RID: 2 RVA: 0x00002075 File Offset: 0x00000475 public Image(Texture2D tex) { this.width = tex.width; this.height = tex.height; this.colors = tex.GetPixels32(); } // Token: 0x17000001 RID: 1 public Color32 this[int col, int row] { get { int num = col + (this.height - row - 1) * this.width; return this.colors[num]; } set { int num = col + (this.height - row - 1) * this.width; this.colors[num] = value; } } // Token: 0x06000005 RID: 5 RVA: 0x00002114 File Offset: 0x00000514 public void Fill(Color32 c, int xmin, int ymin, int xmax, int ymax) { for (int i = ymin; i <= ymax; i++) { for (int j = xmin; j <= xmax; j++) { this[j, i] = c; } } } // Token: 0x04000001 RID: 1 public int width; // Token: 0x04000002 RID: 2 public int height; // Token: 0x04000003 RID: 3 public Color32[] colors; } }