- This wiki is out of date, use the continuation of this wiki instead
Blur
From FenixWiki
(Difference between revisions)
| Revision as of 09:31, 24 July 2008 (edit) 84.59.50.129 (Talk) ← Previous diff |
Current revision (12:37, 24 July 2008) (edit) (undo) Sandman (Talk | contribs) m (→Returns) |
||
| (2 intermediate revisions not shown.) | |||
| Line 5: | Line 5: | ||
| '''INT''' blur ( <'''INT''' fileID> , <'''INT''' graphID> , <'''BYTE''' mode> ) | '''INT''' blur ( <'''INT''' fileID> , <'''INT''' graphID> , <'''BYTE''' mode> ) | ||
| - | This will make the specified [[graphic]] blurry by using a specified mode. It manipulates the | + | This will make the specified [[graphic]] blurry by using a specified mode. It manipulates the graphic directly. |
| + | |||
| + | Only 16bit graphics are supported. | ||
| == Parameters == | == Parameters == | ||
| Line 13: | Line 15: | ||
| | '''INT''' graphID || - The [[graphID]] of the [[graphic]] to convert. | | '''INT''' graphID || - The [[graphID]] of the [[graphic]] to convert. | ||
| |- | |- | ||
| - | | '''BYTE''' mode || - The blur mode that is applied to the [[graphic]]. | + | | '''BYTE''' mode || - The blur mode that is applied to the [[graphic]] (see [[#Blur Modes|below]]). |
| |} | |} | ||
| + | == Returns == | ||
| + | '''INT''' | ||
| + | {| | ||
| + | | 0 || - Invalid graphic or non 16bit graphic used. | ||
| + | |- | ||
| + | | 1 || - Success. | ||
| + | |} | ||
| + | |||
| + | == Errors == | ||
| + | {| | ||
| + | | Unsupported color depth || - The graphic's color depth is not 16bit. | ||
| + | |} | ||
| - | == Blur | + | == Blur Modes == |
| {| | {| | ||
| | ''Constant'' || - ''Value'' || - ''Description'' | | ''Constant'' || - ''Value'' || - ''Description'' | ||
| Line 23: | Line 37: | ||
| | ??? || - 0 || - single pixel: considers pixels located to the left and above of each pixel. | | ??? || - 0 || - single pixel: considers pixels located to the left and above of each pixel. | ||
| |- | |- | ||
| - | | ??? || - 1 || - 3x3: considers all 8 | + | | ??? || - 1 || - 3x3: considers all 8 adjacent pixels. |
| |- | |- | ||
| | ??? || - 2 || - 5x5: considers the 24 pixels that surrounds each pixel. | | ??? || - 2 || - 5x5: considers the 24 pixels that surrounds each pixel. | ||
Current revision
Contents |
[edit] Definition
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.
[edit] Parameters
| 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). |
[edit] Returns
INT
| 0 | - Invalid graphic or non 16bit graphic used. |
| 1 | - Success. |
[edit] Errors
| Unsupported color depth | - The graphic's color depth is not 16bit. |
[edit] Blur Modes
| Constant | - Value | - Description |
| ??? | - 0 | - single pixel: considers pixels located to the left and above of each pixel. |
| ??? | - 1 | - 3x3: considers all 8 adjacent pixels. |
| ??? | - 2 | - 5x5: considers the 24 pixels that surrounds each pixel. |
| ??? | - 3 | - 5x5 with additional map: Just as the previous one but using a temporary map. |
| Graphical effects Functions | |
| • Blur() • Grayscale() • Rgbscale() • | |
