API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IWIDGET_SETBGIMAGESIZE()

Brew Release
Brew MP 1.0.2
See Also
IWidget IWidget_SetBGImageParm
Description
This routine is used to set the backgound image parameter's height and width given the passed in values.
Params
pif
[]:
[in] Pointer to the IWidget interface object.
dx
[]:
[in] The parameter that holds the width for the widget to be sized.
dy
[]:
[in] The parameter that holds the height for the widget to be sized.
Interface
Prototype
  •    int IWidget_SetBGImageSize(IWidget *pif, int dx, int dy);
    
Return
  •    AEE_SUCCESS - If the widget is able to size the background image.
       AEE_EFAILED - If the widget failed to size the background image.
    
Side Effect
  • None
Comments
Note, however, that changing the bitmap dimensions does not scale the image to fit the requested size. Rather, the size passed in 'dx' and 'dy' define a section of the overall bitmap to be used in image operations, effectively providing a mechanism for cropping a bitmap's contents.