https://wiki.bennugd.org/index.php?title=Blur&feed=atom&action=history
Blur - Revision history
2024-03-29T14:17:43Z
Revision history for this page on the wiki
MediaWiki 1.36.2
https://wiki.bennugd.org/index.php?title=Blur&diff=7800&oldid=prev
Sandman at 23:41, 1 December 2009
2009-12-01T23:41:04Z
<p></p>
<p><b>New page</b></p><div>[[Category:functions]]<br />
[[Category:graphical effects]]<br />
[[Category:mod_effects]]<br />
<br />
==Definition==<br />
'''INT''' blur ( <'''INT''' fileID> , <'''INT''' graphID> , <'''BYTE''' mode> )<br />
<br />
This will make the specified [[graphic]] blurry by using a specified mode. It manipulates the graphic directly.<br />
<br />
Only 16bit graphics are supported on 16bit video mode.<br />
<br />
== Parameters ==<br />
{|<br />
| '''INT''' fileID || - The [[fileID]] of the [[file]] that holds the graphics.<br />
|-<br />
| '''INT''' graphID || - The [[graphID]] of the [[graphic]] to convert.<br />
|-<br />
| '''BYTE''' mode || - The blur mode that is applied to the [[graphic]] (see [[#Blur Modes|below]]).<br />
|}<br />
<br />
== Returns ==<br />
'''INT'''<br />
{|<br />
| 0 || - Invalid graphic or non 16bit graphic used.<br />
|-<br />
| 1 || - Success.<br />
|}<br />
<br />
== [[Blur modes]] ==<br />
{|<br />
| ''Constant'' || - ''Value'' || - ''Description''<br />
|-<br />
| BLUR_NORMAL || - 0 || - single pixel: considers pixels located to the left and above of each pixel.<br />
|-<br />
| BLUR_3X3 || - 1 || - 3x3: considers all 8 adjacent pixels.<br />
|-<br />
| BLUR_5X5 || - 2 || - 5x5: considers the 24 pixels that surrounds each pixel.<br />
|-<br />
| BLUR_5X5_MAP || - 3 || - 5x5 with additional map: Just as the previous one but using a temporary map.<br />
|}<br />
<br />
== Examples ==<br />
<br />
{{Image<br />
| image = Blur_sample.png<br />
| caption = Samples of differents blur modes<br />
}}<br />
<br />
{{Moduledocbox<br />
| module = Mod_effects<br />
}}</div>
Sandman