Example #1
0
        public static byte[] DebugGetPalette()
        {
            byte[] frameData = new byte[4 * 8 * 4];

            GCHandle hFrameData = GCHandle.Alloc(frameData, GCHandleType.Pinned);

            try {
                InteropEmu.DebugGetPaletteWrapper(hFrameData.AddrOfPinnedObject());
            } finally {
                hFrameData.Free();
            }

            return(frameData);
        }