The system function GetAsBitmap is not currently documented in the online Help. This function converts the current image of an object derived from the GraphicObject baseclass to a standard Windows bitmap. You assign the visual object that you want to capture in the first argument to the GetAsBitmap fucntion, and reference the bitmap you want to create as a Blob datatype in the second argument to the function. The bitmap can then be saved to a file or displayed inside a picture control. The function returns 1 for success and a negative number if an error occurs.
The GetObjectAsBitmap.PKT target in the PocketBuilder Code Examples\misc directory demonstrates how to use this function.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |