The information in this article applies to:
SYMPTOMSThe image functions SAVEIMAGE, SAVEIMAGE_W, LOADIMAGE, and LOADIMAGE_W fail when the specified image falls outside the current viewport. After SAVEIMAGE fails, calling GRSTATUS will return: $GRIMAGEREADERROR. CAUSEThough not documented, this behavior is by design. The functions listed above will fail when you attempt to place even part of an image outside the viewport. Images are never clipped to the viewport. RESOLUTIONDo not attempt to place images outside of the current viewport. Either make the viewport larger or work with partial (smaller) images. STATUSThis behavior does occur with FORTRAN PowerStation 32. MORE INFORMATIONThis problem is similar to the problem described in the following article in the Microsoft Knowledge Base, which discusses PUTIMAGE, GETIMAGE, PUTIMAGE_W, and GETIMAGE_W: Q118682 PRB: Image Functions Fail with Image Outside of ViewportTo demonstrate the problem, compile and run the sample program. The only bitmap file saved will be TEST.BMP, and the output will be:
Sample Code
Additional query words: 1.00 1.00a
Keywords : |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |