public MyBlinkingIcon(int x, int y, MySprite Graphics) : base(null, x, y, true)
 {
     Sprite = new MyStatefulAnimatedSprite(0, 0)
              .WithState("Off", new MyStatefulAnimatedSpriteState(new MySprite[] { Graphics }))
              .WithState("On", new MyStatefulAnimatedSpriteState(new MySprite[] {
         new MySprite(Graphics.width, Graphics.height, DrawingFrameworkUtils.NegateBoolArray(Graphics.data))
     }));
     AddChild(Sprite);
 }
 private static MySprite CreateFontSprite(byte[] bytes) {
  // Cut a couple of pixels off the right edge
     MyCanvas Cvs = new MyCanvas(6, 7);
     Cvs.BitBlt(new MySprite(8, 7, DrawingFrameworkUtils.ByteArrayToBoolArray(bytes)), 0, 0);
     return new MySprite(6, 7, Cvs.GetBuffer());
 }