[Mono-dev] Image.PropertyItems empty with mono

ChristianManthey info at manthey-it.de
Fri Feb 17 21:19:06 UTC 2012


Sure, here is the code i’m using. On Windows it works perfectly, but on MacOS
the image.PropertyItems is always empty.

using System;
using System.Collections;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Threading;

...
Bitmap originalImage = new Bitmap(fileName);
int orientation = getOrientationFromExif(image);
...

private int getOrientationFromExif(Bitmap image) {
	int orientation = 0;
	bool foundOrientation = false;
	
	foreach (PropertyItem i in image.PropertyItems) {
		…
	}
}



--
View this message in context: http://mono.1490590.n4.nabble.com/Image-PropertyItems-empty-with-mono-tp4397247p4398501.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list