Monthly Archives: June 2015

Change audio gain in C#

Note: This example was written in Visual Studio 2010. This example shows how you can re-encode a video to change its audio gain. Earlier examples such as Change video quality in C# show how to use Microsoft Expression Encoder to … Continue reading

Posted in animation, multimedia | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

Plot functions in C#, Part 3

This is the third example that shows how to plot functions that draw hearts. This time the function is: The following examples also draw heart-shaped functions. See the first for an explanation of how the programs work. Plot a heart-shaped … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , , | Leave a comment

Plot functions in C#

This example shows how to plot functions. This example plots a function that represents a heart shape. The earlier example Plot a heart-shaped function in C# shows how to draw a relatively complex heart-shaped function. Recently I saw a much … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , , | Leave a comment

Make an HTML table of thumbnail images in C#

The post Make thumbnails and a web page to display the images in a directory in C# shows how to make thumbnails for the images in a directory and then build a web page to display them. There are lots … Continue reading

Posted in files, html, image processing, internet, web | Tagged , , , , , , , , , , , , , | Leave a comment

Make thumbnails and a web page to display the images in a directory in C#

This example searches a directory and makes thumbnails for each of the image files it finds there. It also builds a web page that displays the thumbnails and that includes links to the full-scale images. It puts all of the … Continue reading

Posted in files, html, image processing, internet, web | Tagged , , , , , , , , , , , , | Leave a comment

Find files that match multiple patterns in C#

The System.IO.Directory.GetFiles method lets you easily search for files in a directory that match a pattern. Unfortunately it can only search for files that match a single pattern. For example, if you want to find files that match the patterns … Continue reading

Posted in .NET, files | Tagged , , , , , , , , , , , , , , | Leave a comment

Add tabs to a TabControl at runtime in C#

The post Make an improved owner-drawn TabControl in C# shows how to build an owner-drawn TabControl that lets the user remove tabs at runtime. This example lets you add tabs, too. The program includes a Label that displays an X. … Continue reading

Posted in controls | Tagged , , , , , , , , , , | 2 Comments

Notes about Windows Phone development

Getting started in Windows Phone development isn’t too difficult, although there are several seemingly unrelated steps so it can be a bit confusing. Before I talk about that, however, I want to say a few words about the phone I … Continue reading

Posted in miscellany, phone | Tagged , , , , , , , , , | Leave a comment

Graph the sine, cosine, and tangent functions in C#

This example is mostly an exercise in drawing but it does demonstrate a few useful graphics techniques. When you enter minimum and maximum X and Y values and click the Graph button, the following code graphs the sine, cosine, and … Continue reading

Posted in algorithms, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , | 2 Comments

Make an improved owner-drawn TabControl in C#

The post Make an owner-drawn TabControl in C# shows how to make an owner-drawn tab control. Unfortunately the control behaves strangely if it’s not wide enough to display all of its tabs at once. If the control is too small … Continue reading

Posted in controls | Tagged , , , , , , , , , | 1 Comment