QPix Command Reference Image Area |

### QPx_RedrawArea

QPx_RedrawArea(areaRef; redrawOpts):error
| areaRef | Longint | QPix area reference
| redrawOpts | Longint | Redraw options
| error | Longint | Error result

Forces a QPix plug-in area to be redrawn.

The QPix plug-in area is specified by areaRef. If areaRef is not a valid QPix plug-in area reference, qpx_paramErr is returned.

Passing qpx_UpdateBuffers in redrawOpts will also force update the area's offscreen buffer from the image source.

Note

- When a QPix plug-in area is used to display a 4D picture field (named the same as the area object with an underscore at the end), passing qpx_UpdateBuffers in redrawOpts will cause QPix to get the current value of the associated field and reload it.
- Under normal circumstances you will rarely need to use this command. It is required mostly when you change the drawing characteristics by directly accessing the area's internal graphics importer instance.

Example

`` ``Redraw area` `` `C_LONGINT($error)` `` `$error:=QPx_RedrawArea (gQPixArea)` `` `If ($error#qpx_noErr)` ``Handle the error` `End if`

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