Exemple #1
0
        public ImageStringOne(FontFamily fontFamily, string text, double fontSize, int bitmap_bounds_margin, Color bodyColor, double frameSize, Color frameColor)
        {
            this.fontFamily = fontFamily;
            var plane = new EmugenPlaneImage((int)(frameSize * 2 + 1), (int)(frameSize * 2 + 1));

            plane.DrawCircle(frameSize, frameSize, frameSize, 1);

            var image  = new EmugenImage(fontFamily.CreateBitmap(text, fontSize, new Color(255, 0, 0, 255), (int)frameSize + 1, out info));
            var image2 = image.Filter(plane, 255);

            image.FillRGB(bodyColor);
            image2.FillRGB(frameColor);
            image2.DrawImage(image);

            this.image = image2;
        }