Transition of images in Windows Forms Picture box

前端 未结 4 883
囚心锁ツ
囚心锁ツ 2020-12-11 22:27

I\'m new to Windows Forms, in my project, i need to change the image in the picture box at runtime. I\'m able to do that with the help of a timer. The picture just gets chan

4条回答
  •  时光取名叫无心
    2020-12-11 23:03

    Blend effects are easy to get going by using the ColorMatrix class. There's a good example available in my answer in this thread.

    A simple way to get a blur is to resize the image, making it smaller, then redraw it back, making it larger. The Graphics.InterpolationMode property affects the type of blur you'll get.

    Those are quicky do-it-yourself solutions. Any decent graphics library has these kind of operations built-in. You probably want something free, check out ImageMagick.NET

提交回复
热议问题