mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 13:54:25 +00:00
refactor: Remove unused canvas methods
This commit is contained in:
@@ -36,14 +36,6 @@ var CanvasImage = function (image) {
|
|||||||
this.context.drawImage(image, 0, 0, this.width, this.height);
|
this.context.drawImage(image, 0, 0, this.width, this.height);
|
||||||
};
|
};
|
||||||
|
|
||||||
CanvasImage.prototype.clear = function () {
|
|
||||||
this.context.clearRect(0, 0, this.width, this.height);
|
|
||||||
};
|
|
||||||
|
|
||||||
CanvasImage.prototype.update = function (imageData) {
|
|
||||||
this.context.putImageData(imageData, 0, 0);
|
|
||||||
};
|
|
||||||
|
|
||||||
CanvasImage.prototype.getPixelCount = function () {
|
CanvasImage.prototype.getPixelCount = function () {
|
||||||
return this.width * this.height;
|
return this.width * this.height;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user