Previous Up Next

_CBcompBitmapResizeResource
Sets a callback in order to indicate the new graphic resources values in case of a resize.

CompBitmap _CBcompBitmapResizeResource (
CompBitmap _bitmap_
fun [CompBitmap u0 I I [I I I I]] [AlphaBitmap [I I I I]] _callback_
u0 _user_
)
Parameters

_bitmap_
any CompBitmap
_callback_
callback function on component resize (supplemental parameters are w, h and a coordinates)
w and h define the new component size
coordinates contain the exact four last values of creation function _CRcompBitmap
return value sets the new parameters for the object :
new graphic resource (AlphaBitmap)
new x, y, width and height coordinates in resource ([I I I I])
_user_
user parameter
Return value

same CompBitmap