cyotek / imagelistview

Automatically exported from code.google.com/p/imagelistview
5 stars 0 forks source link

Wrong thumbnail size if AutoRotate #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It hit me this morning that the thumbnail size might be wrong when AutoRotate. 
For Thumbnail, Preview and original image it should be:
double scale;
if (rotate % 180 != 0)
{
  scale = Math.Min(size.Height / (double)sourceWpf.PixelWidth, size.Width / (double)sourceWpf.PixelHeight);
}
else 
{
  scale = Math.Min(size.Width / (double)sourceWpf.PixelWidth, size.Height / (double)sourceWpf.PixelHeight);
}

Original issue reported on code.google.com by modernv...@arcor.de on 28 Sep 2010 at 6:27

GoogleCodeExporter commented 9 years ago
Good catch. Never occurred to me.

Thanks,
Ozgur

Original comment by oozcitak on 28 Sep 2010 at 7:55

GoogleCodeExporter commented 9 years ago
Fixed by r420.

Original comment by oozcitak on 28 Sep 2010 at 12:20