Futurebasic/Language/Reference/picture function

From Wikibooks, open books for an open world
< Futurebasic | Language | Reference
Jump to: navigation, search

Contents

[edit] PICTURE

[edit] Syntax

pictureHandle = PICTURE

[edit] Description

This function returns a handle to the picture recorded with the most recent pair of PICTURE ON/PICTURE OFF statements. This handle is the same handle returned by:

PICTURE OFF, pictureHandle

You can specify this handle in the PICTURE statement when you want to draw the picture. You can also pass the picture handle to any of a number of Toolbox routines which require a picture handle as a parameter.

[edit] Note

Your program is responsible for releasing the memory occupied by pictures created with the PICTURE ON/PICTURE OFF statements. You should normally use the KILL PICTURE statement to do this, once you're finished using the picture handle. However, if you turn the picture into a resource (using the Toolbox routine AddResource or PG's FNpGreplaceRes) then you should not dispose of the picture.

[edit] See Also

PICTURE ON/OFF; PICTURE STATEMENT

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export