Q59382: _setcliprgn() Fails to Clip _putimage() Operation
Article: Q59382
Product(s): See article
Version(s): 2.00 2.01
Operating System(s): MS-DOS
Keyword(s): ENDUSER | s_c | mspl13_c
Last Modified: 12-MAR-1990
Question:
When an image is placed on the display using the _putimage function,
and this image spans the border of a clipping region, it is not
clipped properly. Why does this happen?
Response:
First, the _setcliprgn() function operates on single objects. If any
part of an object lies outside of the clipping region, it will not be
displayed. Second, a graphic block (image) used by the _getimage() and
_putimage() functions is treated as a single object by the graphic
functions. Therefore, the entire image must fit in the clip region for
any of it to be displayed. This is in contrast to lines and circles,
which are a collection of objects and are clipped as expected.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.