Developer

API Reference

IWidget_SetScale()

Brew Release
Brew MP 1.0.2
See Also
IWidget IWidget_SetImageParm() AEECLSID_ScaleWidget
Description
This function is used to set the scaled size of the image. Once an image has been set using IWidget_SetImage(), this routine scales the image to the horizontal and vertical dimensions specified.
This function is the only supported way to scale images in the image widget! Pass the unscaled image to IWidget_SetImage() first, then scale it using this routine. Failing to do so (using IIMAGE_SetParm(), for example) will break image alignment and cause other undesirable behavior.
Parameters
  • pif
    []:
    [in] Pointer to the IWidget object.
  • dx
    []:
    [in] Scaled width of the image
  • dy
    []:
    [in] Scaled height of the image
Interface
Prototype
   IWidget_SetScale(IWidget *pif, uint32 dx, uint32 dy)
Return
   AEE_SUCCESS - If BREW was able to successfully scale the image.
   AEE_EFAILED - If the image could not be scaled.
Side Effect
None.
Comment
None
  • Follow