updated by GasGit automation
This commit is contained in:
parent
7cae0c295a
commit
723894e2cc
1 changed files with 3 additions and 3 deletions
|
@ -3,14 +3,14 @@ var Image = (function(image) {
|
|||
'use strict';
|
||||
|
||||
// insert an image at row / column in the sheet
|
||||
image.insert = function ( range, png) {
|
||||
range.getSheet().insertImage ( png , range.getColumn(), range.getRow());
|
||||
image.insert = function ( range, png , offx, offy) {
|
||||
range.getSheet().insertImage ( png , range.getColumn(), range.getRow(),offx || 0 , offy || 0);
|
||||
|
||||
};
|
||||
|
||||
// place an image
|
||||
image.place = function (png) {
|
||||
return image.insert ( SpreadsheetApp.getActiveRange() , png);
|
||||
return image.insert ( SpreadsheetApp.getActiveRange() , png , 10,6);
|
||||
}
|
||||
|
||||
return image;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue