コード例 #1
0
 /// Create a new instance
 /// @param width Width of the texture to make
 /// @param height Height of the texture to make
 /// @param fg An Int32 in the format 0xRRGGBBAA
 /// @param bg An Int32 in the format 0xRRGGBBAA
 public TextureGraph(int width, int height, UInt32 fg, UInt32 bg, float[] data) : base(width, height, bg)
 {
     this.graph  = new PixelGraph(data, width, height);
     this.fg     = fg;
     this.bg     = bg;
     this.colors = new Color[width * height];
 }
コード例 #2
0
 /// Create a new instance
 /// @param width Width of the texture to make
 /// @param height Height of the texture to make
 /// @param fg An Int32 in the format 0xRRGGBBAA
 /// @param bg An Int32 in the format 0xRRGGBBAA
 public TextureGraph(int width, int height, UInt32 fg, UInt32 bg, float[] data) : base(width, height, bg) {
   this.graph = new PixelGraph(data, width, height);
   this.fg = fg;
   this.bg = bg;
   this.colors = new Color[width * height];
 }