Esempio n. 1
0
        public static unsafe IntPtr XCreateBitmapFromData(IntPtr display, IntPtr d, byte[,] data)
        {
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }
            byte[,] numArray;

            // ISSUE: cast to a reference type
            // ISSUE: explicit reference operation
            fixed(byte *data1 = & ^ ((numArray = data) == null || numArray.Length == 0 ? (byte&)IntPtr.Zero : numArray.Address(0, 0)))
            return(Functions.XCreateBitmapFromData(display, d, data1, data.GetLength(0), data.GetLength(1)));
        }