diff --git a/NTwain/Data/TypesExtended.cs b/NTwain/Data/TypesExtended.cs index 5f15e38..39096ec 100644 --- a/NTwain/Data/TypesExtended.cs +++ b/NTwain/Data/TypesExtended.cs @@ -126,6 +126,24 @@ namespace NTwain.Data return new TWFix32(value); } /// + /// Performs an implicit conversion from to . + /// + /// The value. + /// The result of the conversion. + public static implicit operator double(TWFix32 value) + { + return value.ToFloat(); + } + /// + /// Performs an implicit conversion from to . + /// + /// The value. + /// The result of the conversion. + public static implicit operator TWFix32(double value) + { + return new TWFix32((float)value); + } + /// /// Implements the operator ==. /// /// The value1.