Blurry Concept (Source Included)

BlitzMax Forums/BlitzMax Beginners Area/Blurry Concept (Source Included)

dw817(Posted 2016) [#1]
One of the more difficult things to do in graphics is to have a fast blur of a screen or page.

While it can certainly be accomplished by reading every single pixel and get the median to plot, surely there is a simpler way.

Here is my entry to convert a sharp image to a blur. My question is, can this be improved upon, and if so, what code would you use instead where the blur is centered and the edges do not bleed pixels as this one does ?




TomToad(Posted 2016) [#2]
Don't understand the need for the GrabImage, so I removed it. Used SetViewport to remove the blurred border.



dw817(Posted 2016) [#3]
Ah ! Something I didn't consider. I liked the smoothed rounded edges below, I didn't want to lose those. But by seeing your SetViewPort, that definitely fixes the problem.

Nicely done, TomToad.

I am still wondering if there is there a better coding method to create a blurred image from a sharp one ?