Making Bitmap Picture Resource with OpenPicture and AddPicture (43022)
This article was previously published under Q43022
SUMMARY
You can draw pictures and save them into the resource fork of a file
using the built-in MBLC toolbox routines in QuickBASIC. Once they are
saved in the resource fork of a file, you can access them from that
file or you can use ResEdit to move them to the resource fork of
another file or application.
There are two different ways to write a picture to the resource fork
of a file: AddPicture and SavePicture.
This article describes how to record a bitmap picture using
OpenPicture and ClosePicture, and to use AddPicture to store the
bitmap picture as a PICT resource in a resource file. This type of
picture can be viewed in ResEdit. This picture can be loaded back into
memory using GetPicture, and redrawn with DrawPicture.
The alternate method is to use SavePicture to save an image that was
recorded in the QuickDraw string format with the PICTURE ON and
PICTURE OFF statements, as described in another article, which can be
found by querying on the following words:
SavePicture Picture QuickBASIC
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB43022 |
|