Tag Archives: png file

Save WriteableBitmap images in multiple formats in WPF and C#

The post Easily save a WriteableBitmap in WPF and C# describes an extension method that makes it easy to save a WriteableBitmap object into a PNG file, but what if you want to save the image in some other format … Continue reading

Posted in extension methods, graphics, image processing, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , | 1 Comment

Easily save a WriteableBitmap in WPF and C#

In my post Save bitmap files in WPF and C# I lamented (okay, whined about) the cumbersomeness of saving a WriteableBitmap into a file in WPF. Fortunately there’s a way you can make it easier. Simply add an extension method … Continue reading

Posted in extension methods, graphics, image processing, wpf, XAML | Tagged , , , , , , , , , , , , , , , | 1 Comment

Convert a metafile into a PNG file in C#

A metafile (WMF file) contains drawing commands that tell a program how to produce an image. This is very useful and allows you to resize the image without producing ugly anti-aliasing effects, but sometimes you may want a raster image … Continue reading

Posted in drawing, files, graphics, image processing | Tagged , , , , , , , , , , , , | 2 Comments

Use WPF to make a download button in C#

This example uses WPF to make a download button similar to the one shown on the C# Helper web site’s blog posts. The following XAML code shows how the program builds the button. <Window x:Class=”howto_download_button.Window1″ xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Title=”Window1″ Height=”107″ Width=”140″ … Continue reading

Posted in graphics, user interface, wpf, XAML | Tagged , , , , , , , , , , , , , , , | Leave a comment