Image.isOfType

Check if this images data corresponds to given value type.

Given value type is checked against the image data bit depth. Data of 8-bit image is considered to be typed as ubyte array, 16-bit as ushort, and 32-bit as float array. Any other type as input returns false result.

class Image
@safe pure nothrow const
bool
isOfType
(
T
)
(
)

Parameters

T

(template parameter) value type which is tested against the bit depth of the image data.

Meta