protected void CopyBitmapToTexture(Bitmap fontBitmap, Axiom.Core.Texture fontTexture)
        {
            // save the image to a memory stream
            Stream stream = new MemoryStream();
            // flip the image
            fontBitmap.RotateFlip(System.Drawing.RotateFlipType.RotateNoneFlipY);
            fontBitmap.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp);

            // Bitmap headers are 54 bytes.. skip them
            stream.Position = BitmapHeaderSize;
            loadImageMeter.Enter();
            if (dynamic)
                fontTexture.LoadRawData(stream, fontBitmap.Width, fontBitmap.Height, Axiom.Media.PixelFormat.R8G8B8);
            else
                fontTexture.LoadRawData(stream, fontBitmap.Width, fontBitmap.Height, Axiom.Media.PixelFormat.A8R8G8B8);
            loadImageMeter.Exit();
        }