SpreadJS Documentation
getOriginalHeight Method
Gets the original height of the picture.
Syntax
var instance = new GcSpread.Sheets.Picture(name, src, x, y, width, height);
var value; // Type: number
value = instance.getOriginalHeight();
function getOriginalHeight() : number;

Return Value

The original height of the picture.
Example
This example uses the getOriginalHeight method.
<input type="button" id="button1" value="button1"/>

activeSheet.addPicture("f2","Event.png",2,2,6,6);
activeSheet.addPicture("f1","tsoutline.png",3,0,6,6);
var picture = activeSheet.findPicture("f2");
picture.pictureStretch(GcSpread.Sheets.ImageLayout.Center);

$("#button1").click(function () {
alert(picture.getOriginalHeight());
    });
See Also

Reference

Picture type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.