Skip to content

Imagedestroy

Paul Squires edited this page Oct 19, 2026 · 2 revisions

Home › 2D Drawing Functions › ImageDestroy

ImageDestroy

Frees an image made by ImageCreate.

Syntax

Declare Sub ImageDestroy ( ByVal image As Any Ptr )

Parameters

  • image

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

Examples

See ImageCreate for an example on using ImageDestroy.


Category: 2D Drawing Functions
Kind: sub


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally