|
|
@ -53,8 +53,10 @@ public class Photo { |
|
|
|
// a texture for it until that's already happened.
|
|
|
|
LastTouch = touchCounter++; |
|
|
|
// TODO: if we zoom in to more than the display size, actually load the whole image?
|
|
|
|
// TODO: now cropping is fucky.
|
|
|
|
DecoderOptions options = new DecoderOptions { |
|
|
|
TargetSize = new Size(size.X, size.Y) |
|
|
|
TargetSize = new Size(size.X, size.Y), |
|
|
|
SkipMetadata = true |
|
|
|
}; |
|
|
|
Image<Rgba32> tmp = await Image.LoadAsync<Rgba32>(options, Filename); |
|
|
|
Util.RotateImageFromExif(tmp, Orientation); |
|
|
@ -63,7 +65,8 @@ public class Photo { |
|
|
|
|
|
|
|
public async void LoadThumbnailAsync(Vector2i size) { |
|
|
|
DecoderOptions options = new DecoderOptions { |
|
|
|
TargetSize = new Size(size.X, size.Y) |
|
|
|
TargetSize = new Size(size.X, size.Y), |
|
|
|
SkipMetadata = true |
|
|
|
}; |
|
|
|
Image<Rgba32> tmp = await Image.LoadAsync<Rgba32>(options, Filename); |
|
|
|
Util.RotateImageFromExif(tmp, Orientation); |
|
|
|