bmap_save(BMAP*, STRING* name)

Saves a bitmap to an image file.

Parameters:

BMAP* Bitmap pointer.
name Image file name in .jpg, .png, .bmp, .dds, or .tga format, STRING* or char*.

Remarks:

Example:

function main() 
{
  wait(1); // video device must be openend for saving bitmaps
  BMAP* b = bmap_createblack(123,456,24);
  bmap_fill(b,vector(255,0,0),100);
  bmap_save(b,"blue.png");
}

See also:

BMAP, bmap_purge, bmap_load

► latest version online