Beispiel #1
0
        public static void SetHuesBlock(int index, VerdataHuesGroup group)
        {
            if (index < 0 || index >= _huesCount)
            {
                return;
            }

            _huesRange[index].Header = group.Header;
            for (int i = 0; i < 8; i++)
            {
                _huesRange[index].Entries[i].ColorTable = group.Entries[i].ColorTable;
            }
        }
Beispiel #2
0
        public static unsafe void SetHuesBlock(int index, IntPtr ptr)
        {
            VerdataHuesGroup group = Marshal.PtrToStructure <VerdataHuesGroup>((IntPtr)ptr);

            SetHuesBlock(index, group);
        }