public byte[] ToColors() { var templateBitmap = new Bitmap(Numbers.MaxWidth, Numbers.MaxHeight, PixelFormat.Format24bppRgb); Graphics graphic = Graphics.FromImage(templateBitmap); Draw(graphic, Color.Black, shape, 1); return(BitmapConverter.ByteTableFrom(templateBitmap)); }