RasterCachedImage.IsDigitalSigned

RasterCachedImage.IsDigitalSigned method

Performs a fast check to determine if the image is digitally signed, using the provided password and threshold.

public override bool IsDigitalSigned(string password, int percentageThreshold = -1)
ParameterTypeDescription
passwordStringThe password to check the signing.
percentageThresholdInt32The threshold (in percentage)[0-100] that determines if the image is considered signed. If not specified, a default threshold (75) will be applied.

Return Value

True if the image is signed, otherwise false.

Remarks

This method provides the fastest detection by leveraging !:GetSignPercentage. Once the extracted data meets the specified threshold, further extraction steps aimed at improving detection accuracy are skipped.

Examples

The example demonstrates how to verify that the embedded digital signature matches the provided password against the specified probability threshold.

[C#]

var threshold = 100;
using (var image = Image.Load(outputPath))
{
    var isSigned = image.IsDigitalSigned(password, threshold);
}

See Also