private static void GetRotateInfo() { foreach (string s in Directory.GetFiles(@"..\..\..\testdata\pixrotate", "*")) { FileInfo fi = new FileInfo(s); FIBITMAP?dib = ImageWorker.GetJPGImageHandle(fi); if (dib != null) { ushort info = ImageWorker.GetRotateInfo((FIBITMAP)dib); } } }
private static void RotateTest() { ImageWorker.AutoRotateImageFI(new FileInfo(@"..\..\..\testdata\pixrotate\IMG_4222.jpg"), "_rot"); ushort u = ImageWorker.GetRotateInfo((FIBITMAP)ImageWorker.GetJPGImageHandle(new FileInfo(@"..\..\..\testdata\pixrotate\IMG_4222_rot.jpg"))); }