Example #1
0
		public void MergePalette(Palette source, int startIndex = -1, int count = -1)
		{
			if (startIndex == -1) startIndex = 0;
			if (count == -1) count = Length - startIndex;
			for (int i = startIndex; i < startIndex + count && i < Length && i < source.Length; i++)
			{
				WriteInt(i * 4, source.ToInt(i));
			}
		}
Example #2
0
 public void MergePalette(Palette source, int startIndex = -1, int count = -1)
 {
     if (startIndex == -1)
     {
         startIndex = 0;
     }
     if (count == -1)
     {
         count = Length - startIndex;
     }
     for (int i = startIndex; i < startIndex + count; i++)
     {
         WriteInt(i * 4, source.ToInt(i));
     }
 }