QPix Command Reference Pictures |

### QPx_FilterPicture

QPx_FilterPicture(pictVar; filterSettings):error
| pictVar | Picture | Picture variable
| filterSettings | BLOB | Filter settings
| error | Longint | Error result

Applies a filter to a picture.

The source picture is passed in the pictVar parameter. The source picture may be compressed or uncompressed. The filtered picture is also returned in the pictVar parameter and it is always uncompressed.

The filterSettings parameter specifies the filter to be applied and its associated settings. To let the user select a filter and retrieve the selected filter and settings, call the QPx_DoFilterSettingsDialog command.

To get information about all available QuickTime filters, call the QPx_GetFilterList command.

Note: The BLOB parameter must contain filter settings that has previously been obtained using the QPx_DoFilterSettingsDialog command. The structure of this BLOB is private to QuickTime and cannot be constructed or altered with 4D BLOB commands.

Example

``Displays the filter settings dialog and applies` ``the selected filter to a picture` `` `C_LONGINT($error)` `C_PICTURE($picture)` `C_STRING(4;$filterType)` `C_BLOB($settings)` `` `$picture:=[Images]Picture` `` `$error:=QPx_DoFilterSettingsDialog($settings;$filterType)` `` `If ($error=qpx_noErr)` `` `$error:=QPx_FilterPicture($picture;$settings)` `` `If ($error#qpx_noErr)` ``Handle the error` `End if` `` `End if` ``

Related commands

QPx_GetFilterList | Returns a list of available QuickTime filters

QPix © Escape Information Services
Generated by QDoc 2.6 on Thu, 2 May 2002 00:49:52 +0300