OnBitmapChanged

Description

This event is triggered when the current image in buffer is changed like flipped, cropped, rotated, etc. or a new image has been acquired.

Syntax

.RegisterEvent('OnBitmapChanged',function(strUpdatedIndex, operationType, sCurrentIndex){...});

Remarks

<string> strUpdatedIndex: the changed index in 'string' format.
<number> operationType: The operation type which is one of the following {1 - Append(after index), 2 - Insert(before index), 3 - Remove, 4 - Edit(Replace), 5 - Index Change]
<number> sCurrentIndex: The index of the currently selected file.

Example

DWObject.RegisterEvent('OnBitmapChanged', function(strUpdatedIndex, operationType, sCurrentIndex){
    alert('image' + strUpdatedIndex + ' is changed');
});
Is this page helpful?

Leave a Reply

Your email address will not be published.