BCX_LOADBMP function

Purpose: BCX_LOADBMP function returns a handle to a bitmap(.bmp) image loaded from a file or loaded as a resource.


 Syntax:

 MyhBmp = BCX_LOADBMP(FileName$[, 0, Transparent%]) ' load from a file
 
 MyhBmp = BCX_LOADBMP("", Resource%[, Transparent%]) ' load from EXE resources

 Parameters:

  • MyhBmp The HBITMAP handle, returned by the function.
  • FileName$ A string specifying the path to and name of a .bmp bitmap file.
  • Resource% [OPTIONAL] integer value of a bitmap or image resource.
  • Transparent% [OPTIONAL] Set this parameter to 1 to load a bitmap with transparent areas. If the transparent bitmap is being loaded from a file be sure to write a 0 for the second parameter argument.

BCX_BMPHEIGHT function

Purpose: BCX_BMPHEIGHT function returns the height of a bitmap(.bmp) image.


 Syntax:

 RetVal% = BCX_BMPHEIGHT(hBmp)

 Parameters:

  • RetVal% The return value in pixels of the height of the bitmap(.bmp) image.
  • hBmp The HBITMAP handle of the bitmap(.bmp) image from which the height is to be retrieved.

BCX_BMPWIDTH function

Purpose: BCX_BMPWIDTH function returns the width of a bitmap(.bmp) image.


 Syntax:

 RetVal% = BCX_BMPWIDTH(hBmp)

 Parameters:

  • RetVal% The return value in pixels of the width of the bitmap(.bmp) image.
  • hBmp The HBITMAP handle of the bitmap(.bmp) image from which the width is to be retrieved.