Category Archives: GDI+

Print at full scale in C#

This example shows how you can print at full scale so objects drawn on the screen are the same size when printed. Note that your screen and printer are probably not calibrated exactly so the result will not match perfectly. … Continue reading

Posted in drawing, GDI+, graphics, printing | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Draw a variety of fractal strange attractors in C#

If you plot a sequence of points (x1, y1), (x2, y2), …, the points can settle into one of several patterns. For example, they can converge on a fixed value, enter a repeating cycle, tend towards infinity, or look chaotic. … Continue reading

Posted in algorithms, drawing, fractals, GDI+, graphics, image processing | Tagged , , , , , , , , , , , | Leave a comment

Draw stars inside polygons in C#

This example shows how to draw stars inside a polygon by connecting every M-th vertex as it draws. If the polygon has N sides and N and M are relatively prime (have no common factors except 1), then the lines … Continue reading

Posted in drawing, GDI+, graphics | Tagged , , , , , , , , , , | Leave a comment

Obscure parts of a picture for privacy in C#

This example lets you obscure parts of a picture to hide sensitive information such as names, email addresses, phone numbers, and photographs. It provides three obscuring styles: Pixelated (the area is replaced with blocks of color), Fuzzy (the area is … Continue reading

Posted in algorithms, files, GDI+, graphics, image processing, tools | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment