HI_SetBmp

HI_SetBmp

%HI_SetBmp function

 


Function

Function changes bitmap in graphic object Bitmap.

Declaration

%HI_SetBmp( INT in refId, HBJ in bmp, BOOL in bOriginalSize, BOOL in byCenter, [, BOOL in bProportional] )

Parameters

refId

Reference to graphic object (reference variable).

bmp

Bitmap.

bOriginalSize

@TRUE - by its size
@FALSE - by the size in HI

byCenter

@TRUE - by the centre size in HI
@FALSE - by the location (upper left point)

bProportional

@TRUE - it draws a picture and keeps its aspect ratio in the area of active bitmap
@FALSE - it draws a picture and adjust it to the defined area of active bitmap. @FALSE is used if the parameter is not defined.

Description

Function changes bitmap in graphic object Bitmap from script.

Example

%HI_SetBmp(_bmp, otvor.bmp\HBJ, @TRUE, @FALSE, @TRUE)