UnityEngine.WebCamTexture.GetPixels C# (CSharp) Method

GetPixels() public method

Get a block of pixel colors.

public GetPixels ( ) : UnityEngine.Color[]
return UnityEngine.Color[]
        public Color[] GetPixels()
        {
            return this.GetPixels(0, 0, this.width, this.height);
        }

Same methods

WebCamTexture::GetPixels ( int x, int y, int blockWidth, int blockHeight ) : UnityEngine.Color[]

Usage Example

コード例 #1
0
 static public int GetPixels(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             UnityEngine.WebCamTexture self = (UnityEngine.WebCamTexture)checkSelf(l);
             var ret = self.GetPixels();
             pushValue(l, ret);
             return(1);
         }
         else if (argc == 5)
         {
             UnityEngine.WebCamTexture self = (UnityEngine.WebCamTexture)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             System.Int32 a3;
             checkType(l, 4, out a3);
             System.Int32 a4;
             checkType(l, 5, out a4);
             var ret = self.GetPixels(a1, a2, a3, a4);
             pushValue(l, ret);
             return(1);
         }
         LuaDLL.luaL_error(l, "No matched override function to call");
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
All Usage Examples Of UnityEngine.WebCamTexture::GetPixels