C# Helper
我还没有学会写个人说明!
访问网站

作者专栏

Center text above or below a line segment in C#

Center text above or below a line segment in C#

My post Draw text on a line segment in C# shows how to draw text above or below a line segment, but that technique does not work very well if you want to center text over the segment. Tha ...
Resize images in C#

Resize images in C#

You can use MS Paint to easily resize images. Unfortunately, it won’t preserve transparency if you save the result. I often need to resize transparent images so I finally got around to wr ...
Combine image slices in C#

Combine image slices in C#

After my recent post Adjust an image’s opacity in C# , I realized that it might be interesting to combine slices from different versions of an image saved with different opacities. I did’ ...
Adjust an image’s opacity in C#

Adjust an image’s opacity in C#

I recently wanted to reduce an image’s contrast by adjusting its opacity. If you draw a semi-transparent image on top of a white background, the result looks washed out so it can act as a ...
Let the user draw a polyline in WPF and C#

Let the user draw a polyline in WPF and C#

This example shows how you can let the user use the mouse to draw a polyline in and WPF application in C#. I often badmouth WPF by saying that it is “twice as flexible and only ten times ...
Let the user draw, move, and modify an arc in C#

Let the user draw, move, and modify an arc in C#

The example See whether a point is above an arc in C# shows how you can find the part of an arc at a particular position. This example uses the techniques described in that one to allow t ...
See whether a point is above an arc in C#

See whether a point is above an arc in C#

This example shows how you can determine which part of an arc is at a particular position. If you move the mouse over the arc’s start or end point, the program changes its cursor to the P ...

分页导航