Convert an Image to Gray Scale in C#
Sometimes you need to take a color image and remove all of the color from it leaving just shades of gray. There are 3 common ways of performing this calculation, each yielding slightly different...
View ArticleDarken an Image in C#
In order to darken an image in C# you need to look at each pixel one at a time and decrease it’s reg, green, and blue values. There are a few ways to do this. The easiest way is just just decrement the...
View ArticleLighten an Image in C#
In order to lighten an image in C# you need to look at each pixel one at a time and increase it’s reg, green, and blue values. There are a few ways to do this. The easiest way is just just increment...
View ArticleAdjust the Contrast of an Image in C#
Adjusting the contrast of an image in C# is an easy operation because it can be done on a single pixel at a time. We only need to know 2 formulas to calculate a new pixel color based on an old pixel...
View ArticleScale an Image in C# Preserving Aspect Ratio
If you need to change the size of an Image without changing the ratio of X to Y then this function should do what you want. The input parameters maxWidth and maxHeight define the largest values that...
View ArticleImage vs Bitmap in C#
A lot of people get confused about when to use the Bitmap class and when to use the Image class in C#. All of our examples on this site tend to use the Bitmap class because it is, for the most part,...
View ArticleHow to compile ncmpcpp on CentOs 8
If you want to compile ncmpcpp on CentOs 8 then you have to get a few requirements out of the way first. If you are new to compiling applications on Linux then this can be a bit daunting the first time...
View ArticleMIDI Controlled Solenoids with Arduino and Ableton Live – Part 1
In this 3 part article we teach you how to control electronic solenoids from Ableton Live, by using some Arduino programming, a little bit of MIDI knowledge, and some basic electronics. At the end of...
View ArticleMIDI Controlled Solenoids with Arduino and Ableton Live – Part 2
This is part 2 in a 3 part series that shows how to make Ableton Live play music on electric solenoids using an Arduino. If you missed the first article you can find it here: MIDI Controlled Solenoids...
View ArticleMIDI Controlled Solenoids with Arduino and Ableton Live – Part 3
This is the 3rd and final part in a 3 part series about how to control solenoids using Ableton Live and an Arduino. In case you missed them, the first 2 parts are here: MIDI Controlled Solenoids with...
View Article
More Pages to Explore .....