updated by GasGit automation
This commit is contained in:
parent
56576037e7
commit
f79dce5eb3
1 changed files with 19 additions and 0 deletions
19
scripts/Image.js
Normal file
19
scripts/Image.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
// responsible for placing a png image on a sheet
|
||||
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());
|
||||
|
||||
};
|
||||
|
||||
// place an image
|
||||
image.place = function (png) {
|
||||
return image.insert ( SpreadsheetApp.getActiveRange() , png);
|
||||
}
|
||||
|
||||
return image;
|
||||
}) (Image || {});
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue