Modified Modules Folder Structure

This commit is contained in:
Chinmay Pandhare
2017-07-14 09:27:07 +05:30
parent 030f43d3b3
commit 04e39a8d3d
19 changed files with 154 additions and 348 deletions

View File

@@ -0,0 +1,32 @@
/*
* This module extracts pixels and saves them as it is.
*/
module.exports = function DoNothingPix(options) {
options = options || {};
options.title = "Do Nothing with pixels";
var output;
function draw(input,callback) {
this_ = this;
function changePixel(r, g, b, a) {
return [r, g, b, a];
}
function output(image,datauri,mimetype){
this_.output = {src:datauri,format:mimetype}
}
return require('../_nomodule/PixelManipulation.js')(input, {
output: output,
changePixel: changePixel,
format: input.format,
image: options.image,
callback: callback
});
}
return {
options: options,
draw: draw,
output: output
}
}