Skip to content

Commit

Permalink
Add a method to load arraybuffer data.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Nov 12, 2017
1 parent 6450f32 commit b37e25f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/app/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,21 @@ dwv.App = function ()
}
};

/**
* Load a list of ArrayBuffers.
* @param {Array} data The list of ArrayBuffers to load
* in the form of [{name: "", filename: "", data: data}].
*/
this.loadImageObject = function (data)
{
// create IO
var memoryIO = new dwv.io.MemoryLoader();
// create options
var options = {};
// load data
loadImageData(data, memoryIO, options);
};

/**
* Load a list of image URLs.
* @private
Expand Down

0 comments on commit b37e25f

Please sign in to comment.