Exemplo n.º 1
0
        private void DrawImage()
        {
            var items = (SelectedItems)banker["SelectedItems"];

            generator = new ImageInfoGenerator(items);

            //身体
            img_body.Source = new BitmapImage(generator.DressFileName());
            img_body.Margin = generator.DressMargin();

            //目
            eyeLayers       = generator.EyesFileName();
            img_eyes.Source = new BitmapImage(eyeLayers.First());
            img_eyes.Margin = generator.EyesMargin().First();

            //口
            mouthLayers      = generator.MouthsFileName();
            img_mouth.Source = new BitmapImage(mouthLayers.Last());
            img_mouth.Margin = generator.MouthsMargin().Last();
        }
Exemplo n.º 2
0
        private void DrawImage()
        {
            var items = (SelectedItems)banker["SelectedItems"];
            generator = new ImageInfoGenerator(items);

            //身体
            img_body.Source = new BitmapImage(generator.DressFileName());
            img_body.Margin = generator.DressMargin();

            //目
            eyeLayers = generator.EyesFileName();
            img_eyes.Source = new BitmapImage(eyeLayers.First());
            img_eyes.Margin = generator.EyesMargin().First();

            //口
            mouthLayers = generator.MouthsFileName();
            img_mouth.Source = new BitmapImage(mouthLayers.Last());
            img_mouth.Margin = generator.MouthsMargin().Last();
        }