diff --git a/source/Ox.Image/Ox.Image.js b/source/Ox.Image/Ox.Image.js index 1994b527..7055c329 100644 --- a/source/Ox.Image/Ox.Image.js +++ b/source/Ox.Image/Ox.Image.js @@ -682,9 +682,9 @@ Ox.load.Image = function(options, callback) { val <[n]> RGBA values @*/ that.pixel = function() { - var xy = arguments.length == 1 || Ox.isArray(arguments[1]) + var xy = Ox.isArray(arguments[0]) ? arguments[0] : [arguments[0], arguments[1]], - val = Ox.isArray(Ox.last(arguments)) + val = arguments.length > 1 && Ox.isArray(Ox.last(arguments)) ? Ox.last(arguments) : null, i = getIndex(xy), ret;