internal static LibDescent.Data.Color[] GDIPaletteToLDPalette(System.Drawing.Color[] palette) { LibDescent.Data.Color[] array = new LibDescent.Data.Color[palette.Length]; for (int i = 0; i < array.Length; ++i) { array[i] = GDIColorToLDColor(palette[i]); } return(array); }
internal static System.Drawing.Color LDColorToGDIColor(LibDescent.Data.Color color) { return(System.Drawing.Color.FromArgb(color.A, color.R, color.G, color.B)); }