This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Quick-and-dirty (and untested!) port of https://gist.github.com/3169945 to C# | |
Bitmap DecodeFile (string path) | |
{ | |
var opts = new BitmapFactory.Options () { | |
InJustDecodeBounds = true, | |
}; | |
using (var b = BitmapFactory.DecodeFile (path, opts)) { | |
// Ignore; we're filling `opts` | |
} | |
const int RequiredSize = 70; |