From Bennu Wiki
Revision as of 15:41, 1 December 2009 by Sandman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


INT blur ( <INT fileID> , <INT graphID> , <BYTE mode> )

This will make the specified graphic blurry by using a specified mode. It manipulates the graphic directly.

Only 16bit graphics are supported on 16bit video mode.


INT fileID - The fileID of the file that holds the graphics.
INT graphID - The graphID of the graphic to convert.
BYTE mode - The blur mode that is applied to the graphic (see below).



0 - Invalid graphic or non 16bit graphic used.
1 - Success.

Blur modes

Constant - Value - Description
BLUR_NORMAL - 0 - single pixel: considers pixels located to the left and above of each pixel.
BLUR_3X3 - 1 - 3x3: considers all 8 adjacent pixels.
BLUR_5X5 - 2 - 5x5: considers the 24 pixels that surrounds each pixel.
BLUR_5X5_MAP - 3 - 5x5 with additional map: Just as the previous one but using a temporary map.


Blur sample.png
Samples of differents blur modes

Functions Blur()Filter()Grayscale()Rgbscale()