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

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.
Params
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.
Comments
None