Category Archives: graphics

Encode and decode Futurama’s alienese in C#

My last two posts explained a program can pull out pieces of an image. In those examples, the image was a collection of glyphs and the program saved the individual glyphs in png files. This post uses the glyphs to … Continue reading

Posted in graphics, image processing | Tagged , , , , , , , , , , | Leave a comment

Separate glyphs in an image in C#, Part 2

This is the second post describing the program that I wrote to separate glyphs in a combined image. The first post explained the program’s menus. This post explains how the program manages its red glyph selection rectangle. This post describes … Continue reading

Posted in graphics, image processing | Tagged , , , , , , , , , | Leave a comment

Separate glyphs in an image in C#, Part 1

I’m working on a program to translate to and from Futurama’s alienese alphabet. Before I do that, I wrote this program to separate glyphs stored in an image that contains the alphabet. It’s a fairly full-featured program, so I’ll describe … Continue reading

Posted in graphics, image processing | Tagged , , , , , , , , , | 1 Comment

Videos vs Animated GIFs – Pros and Cons

The modern web and mobile applications are rich in media content because it’s one of the crucial things that keeps the user engaged. An image is worth a thousand words, and a video is worth a million. Obviously, meaningful animated … Continue reading

Posted in graphics, multimedia, web | Tagged , , , , , , , , | Leave a comment

Graph points in WPF and C#

This example extends the previous example Draw a graph in WPF and C# to draw ellipses marking the data sets’ points. See that example for an explanation of how most of the program works. The following code shows how the … Continue reading

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

Draw rose curves in C#

A rose curve is a curve generated by the polar coordinate equation r = cos(n / d * θ). Here n and d should be relatively prime, so the fraction n / d cannot be simplified. When you click the … Continue reading

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

Perform image hashing in C#

Image hashing or (perceptual image hashing) attempts to reduce an image to a concise code that represents the image so you can compare it to other images to see if they are the same. This example uses a difference hash … Continue reading

Posted in algorithms, graphics, image processing | Tagged , , , , , , , | Leave a comment

Draw the spiral of Theodorus in C#

The spiral of Theodorus (which is also called the square root spiral, Einstein spiral, and Pythagorean spiral) was first devised by the Greek mathematician Theodorus of Cyrene during the 5th century BC. The spiral consists of a sequence of right … Continue reading

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

Tile a bitmap with a string in C#

I recently needed a bitmap tiled with a string for a book I’m working on, so I wrote this program to make it. The program lets you click on the font name, dimensions, or colors to select those values. When … Continue reading

Posted in algorithms, graphics, image processing | Tagged , , , , , , , , , , | Leave a comment

Color the solutions to the “Find the squares in C#” puzzle

The post Solve the “Find the squares in C#” puzzle explained how you can find solutions to the puzzle described in the post Puzzle: Find the squares in C#. This example shows how you can color the solutions so squares … Continue reading

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