Error processing SSI file
LEADTOOLS JavaScript (Leadtools)

ToJSON Method (LeadMatrix)

Show in webframe
Converts this LeadMatrix to a JSON-compatible dictionary object.
Syntax
 function Leadtools.LeadMatrix.toJSON()

Return Value

TypeDescription
Object a JavaScript JSON-compatible object to describe the LeadMatrix instance.
Remarks

The JSON object returned will always have all properties defined, regardless of whether the LeadMatrix instance is Identity:


            {
               "m11": "1",
               "m12": "0",
               "m21": "0",
               "m22": "1",
               "offsetX": "0",
               "offsetY": "0"
            }
               

The returned dictionary object can be used to create a new LeadMatrix instance with the static method FromJSON, though it is recommended to use Clone instead when simply creating a copy of the instance. The ToJSON and FromJSON methods allow the transfer of LeadMatrix data between .NET, Java, and JavaScript.

Following standard web specifications, the ToJSON method and subsequent return value are used automatically for a LeadMatrix instance when the global JSON.stringify function is called on that instance.

See Also

Reference

LeadMatrix Object
LeadMatrix Members

Error processing SSI file