Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 299 Bytes

getPixel.md

File metadata and controls

18 lines (13 loc) · 299 Bytes

Get pixel.

array getPixel(int x, int y)
  • x x-coordinate of the point.
  • y y-coordinate of the point.
Example:
var imageLib = require('./imageLib.js');

imageLib('./images/sample.bmp').bmpToData(function() {
	this.getPixel(10, 10); // [ 0, 0, 0, 255 ]
});