private List <float> GetAllowableResolutions() { var resolutionsVector = _twain32.GetResolutions(); if (resolutionsVector == null) { return(null); } var allowableResolutions = new List <float>(); foreach (var resolution in resolutionsVector.Items) { allowableResolutions.Add((float)resolution); } return(allowableResolutions); }