Help Center
Help CenterFreeBASIC

ImageDestroysub

Destroys and deallocates storage for an image

Syntax

Declare Sub ImageDestroy ( ByVal image As Any Ptr )

Parameters

NameDescription
imageThe address of the image to destroy.

Description


Destroys the image pointed to by image, which must be an address returned from a call to ImageCreate.

Calling ImageDestroy on a null pointer induces no action.

Remarks

Usage


ImageDestroy( image )

Dialect Differences


  • Not available in the -lang qb dialect unless referenced with the alias __Imagedestroy.

Differences from QB


  • New to FreeBASIC

See also


Example


See ImageCreate for an example on using ImageDestroy.

Reference

  • Documented in KeyPgImageDestroy.html