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.
Parameters
  • 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
Comment
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.
  • Follow