Add differs() method to Matrix.ImageIngo

Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
This commit is contained in:
Gergely Polonkai 2016-03-22 10:08:28 +00:00
parent 2dc42021b6
commit 2a098de9bf
1 changed files with 15 additions and 0 deletions

View File

@ -795,6 +795,21 @@ namespace Matrix {
return node;
}
/**
* Check if two ImageInfo objects are identical.
*
* @param other the ImageInfo object to compare with
* @return true if the two objects hold different values
*/
public bool
differs(ImageInfo other)
{
return ((size != other.size)
|| (height != other.height)
|| (width != other.width)
|| (mimetype != other.mimetype));
}
}
public struct AudioInfo {