QPix Command Reference Settings Dialogs |

### QPx_DoFilterSettingsDialog

QPx_DoFilterSettingsDialog(filterSettings; filterType; samplePict; filterList):error
| filterSettings | BLOB | Filter settings
| filterType | String4 | Filter type, optional
| samplePict | Picture | Sample picture, optional
| filterList | Array string | List of filters, optional
| error | Longint | Error result

Displays the standard filter dialog, and allows the user to select a filter and to specify parameters. The selected filter and associated parameters are returned in a BLOB. If the user cancels the dialog, qpx_UserCancelErr is returned.

Parameter filterSettings receives the selected filter and associated parameters as a BLOB. This BLOB can be passed to the QPx_FilterPicture command, in order to apply the filter.

Parameter filterType receives the four-character identifier of the selected filter (optional).

Parameter samplePict specifies a picture that will be used as a sample in the filter dialog (optional).

Parameter filterList can be used to restrict user selection to specific filters. If filterList is omitted, all available filters are included in the dialog. To specify a list of filters, populate the filterList array with the 4-character type identifiers of the filters that you want listed (optional).

For a list of all all available QuickTime filters, call the QPx_GetFilterList command.

Note: The BLOB parameter returned by this command is a filter settings BLOB that can be further passed to commands that accept such a parameter. The structure of this BLOB is private to QuickTime and cannot be constructed or altered with 4D BLOB commands.

Example

``Display the filter settings dialog, and save` ``the selected filter type and settings in a record` `` `C_LONGINT($error)` `C_STRING(4;$filterType)` `C_BLOB($settings)` `` `$error:=QPx_DoFilterSettingsDialog($settings;$filterType)` `` `If ($error=qpx_noErr)` `` `CREATE RECORD([FilterSettings])` `[FilterSettings]Filter:=$filterType` `[FilterSettings]Settings:=$settings` `SAVE RECORD([FilterSettings])` `` `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:50:09 +0300