CatchImage()

Syntax

Result = CatchImage(#Image, MemoryAddress)

Description

Load the specified image from the given memory area. The image must be in BMP format (Icons not supported). If something wrong the 0 value is returned. A loaded image can be freed by using the FreeImage() command. This command is useful when using the 'IncludeBinary' PureBasic keyword. Then images can be packed inside the executable. Nevertheless, use this option with care, as it will take more memory than storing the file in an external file (the file are both in executable memory and load in physical memory).

Example:
  CatchImage(0, ?Logo) 
  End 

  Logo: IncludeBinary "Logo.bmp" 

Supported OS

Windows, AmigaOS, Linux

Image - Index