grafic function ttg_getbmp()

ttg_getbmp opens a .bmp file and checks the structure. If the type of .bmp file cannot be used in TT-Grafics you get an error message. In this case, the function returns "" (blank), otherwise a string is returned giving the width of the image, a '/', the height of the image, a 'B' and the color depth of the image.

 

the function get_x returns the width of the image from the string returned by ttg_getbmp as integer

the function get_y returns the height of the image from the string returned by ttg_getbmp as integer

If ttg_getbmp reports an error, you may use Check a .BMP file from the menue audio/grafik utilities. This calls form m_chkbmp and analyses the .bmp file providing better information.

Parameters:

1. fullpath of a .bmp file