/// <summary>
 /// Initializes the.
 /// </summary>
 /// <param name="args">The args.</param>
 public override void Initialize(params object[] args)
 {
     if (args != null)
     {
         Index         = (ColorPaletteIndex)args[0];
         Length        = (int)args[1];
         BytesPerColor = (BytesPerPixel)args[2];
         OnPaletteChange?.Invoke();
     }
 }
 /// <summary>
 /// Sets the colors.
 /// </summary>
 /// <param name="newColors">The new colors.</param>
 /// <param name="srcOffset">The src offset.</param>
 /// <param name="dstOffset">The dst offset.</param>
 /// <param name="lenght">The lenght.</param>
 public virtual void SetColors(byte[] newColors, int srcOffset, int dstOffset, int lenght)
 {
     OnPaletteChange?.Invoke();
 }
Exemple #3
0
 void FireOnPaletteChanged()
 {
     OnPaletteChange?.Invoke();
 }