ImageGear.Web.Isis Namespace Client API Library > ImageGear.Web.Isis Namespace Client API~ImageGear.Web.Isis_namespace > ImageGear.Web.Isis Namespace Client API~ImageGear.Web.Isis.ImGearIsisScanner : setTagRational Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function setTagRational( tagID : number(Integer), numerator : number(Integer), denominator : number(Integer), index : number(Integer), callback : function ) : ImGearIsisOperationStatus; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfImGearIsisScanner.setTagRational(number(Integer),number(Integer),number(Integer),number(Integer),function); |
The JavaScript code below demonstrates how to set the scanner ISIS X resolution tag to a rational value of 300/1. You can use the getTag method to get the tag type and list or range of supported values for a tag.
function setTagCallback(status) { if (status.get_status() !== ImageGear.Web.Isis.ImGearIsisStatus.Completed) { alert(status.get_statusMessage()); } } scannerSession.get_scanner().setTagRational(ImageGear.Web.Isis.ImGearIsisTag.XResolution, 300, 1, 0, setTagCallback);
This is an asynchronous method.
To set the values of multiple tags, it is more efficient to use setAllTags.
The scanner must be set before calling this method.
For more information on ISIS tags, refer to the ISIS Tags topic.
ImageGear.Web.Isis Namespace Client API~ImageGear.Web.Isis.ImGearIsisScanner
ImGearIsisScanner Members