I am working on a chrome extension in which I want to take screenshot of only specific portion of the current window, not the entire window itself.
For now,I have been using this API of chrome
chrome.tabs.captureVisibleTab(null,{},function(dataUri){
// datauri is the screenshot
});
It takes the screenshot of entire page but I want screenshot of my given x,y coordinates.
How can I achieve the same?
Thanks a lot !