Ejemplo n.º 1
0
        private static void SaveIcon(BitmapSource bitmapImage, string path)
        {
            var scale       = 256.0 / bitmapImage.PixelWidth;
            var scaledImage = new TransformedBitmap(bitmapImage, new ScaleTransform(scale, scale));

            var icon = new Inedo.Iconator.IconFile();

            icon.Images.Add(scaledImage);

            icon.Save(path);
        }
Ejemplo n.º 2
0
        private static void SaveIcon(BitmapSource bitmapImage, string path)
        {
            var scale = 256.0 / bitmapImage.Width;
            var scaledImage = new TransformedBitmap(bitmapImage, new ScaleTransform(scale, scale));

            var icon = new Inedo.Iconator.IconFile();
            icon.Images.Add(scaledImage);

            icon.Save(path);
        }