public bool TryGetBitmapTransform(string optionValue, IEnumerable<KeyValuePair<string, string>> settings, out Func<BitmapSource, BitmapSource> bitmapTransformerFunc)
{
double scale;
if (TryParseDouble(optionValue, out scale))
{
bitmapTransformerFunc = sourceBitmap => new TransformedBitmap(sourceBitmap, new ScaleTransform(scale, scale));
return true;
}
bitmapTransformerFunc = null;
return false;
}