Older Newer
Sun, 24 Nov 2019 10:51:01 . . . . SyneRyder [Remove links to internal features]


Changes by last author:

Added:
== Handlers ==

A handler is a special-purpose function which is invoked whenever a specified event or condition occurs. The parameters for a handler are passed implicitly via global variables. The value returned by a handler may vary, but is often a Boolean flag indicating whether or not the handler successfully completed its mission.

ÿ1ÿ> OnInitDialog

:is an internal handler, not currently exposed to the Filter Designer. It is invoked when the plug-in is first loaded, and is responsible for initializing global variables, creating the initial filter dialog, and establishing the initial set of controls in the filter dialog.

ÿ2ÿ> OnCtl

:is invoked whenever a control is activated which might require some response, such as initiating the image filtration process. This handler is also a catch-all for various other events.

ÿ3ÿ> OnFilterStart

:is invoked whenever it is time to begin processing (or "filtering") the current image to produce the preview display or the final result image.

ÿ4ÿ> ForEveryTile

:is invoked once for every tile in the image during filter processing (if OnFilterStart returns false).

ÿ5ÿ> ForEveryRow

:is invoked once for every row in the current tile, if ForEveryTile returns false.

ÿ6ÿ> ForEveryPixel

:is invoked once for every pixel in the current row, if ForEveryRow returns false.

ÿ7ÿ> (R, G, B, A)?

:Each of these handlers (R, G, B, or A) is invoked once for each pixel, if ForEveryPixel returns false for the pixel in question. There may be multiple instances of each R, G, B, or A handler, in which case`they will be called in sequence for each designated pixel.

ÿ8ÿ> OnFilterEnd

:is called after the last pixel of the last row of the last tile in the current image has been processed, and is responible for performing any post-filtering clean-up actions.

ÿ9ÿ> OnDivideCheck

:is an internal handler not exposed to the Filter Designer. It is invoked immediately before each integer division instruction in the filter code to guard against the possibility of generating an integer division fault.

ÿ10ÿ> (OnZeroDivide)?

:is invoked whenever an integer division (or remainder) operation is about to attempt to divide by 0. The default (OnZeroDivide)? handler forces the result of the operation to 0, for compatibility with (Filter Factory)?.

ÿ11ÿ> (OnDivideOverflow)?

:is invoked whenever an integer division (or remainder) operation is about to produce a divide overflow error. The default (OnDivideOverflow)? handler returns a result of 0x80000000 (indefinite-Nan) for the division or remainder operation.