### QPx_SetAreaSelection

QPx_SetAreaSelection(areaRef; selLeft; selTop; selRight; selBottom):error
| areaRef | Longint | QPix area reference
| selLeft | Longint | Selection rect left
| selTop | Longint | Selection rect top
| selRight | Longint | Selection rect right
| selBottom | Longint | Selection rect bottom
| error | Longint | Error result

Changes the selection rectangle in a scrollable QPix plug-in area. Has the same effect as the marquee tool.

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

Parameters selLeft, selTop, selRight and selBottom specify the new selection rectangle. The specified selection rectangle is automatically constrained to image rectangle (no error is returned).

Related commands

QPx_GetAreaSelection | Returns the selection rectangle of a scrollable QPix plug-in area

QPix © Escape
Generated by QDoc 2.8 on Wed, Feb 17, 2010 17:44:07