mirror of
https://gitlab.com/sbrl/GalleryShare.git
synced 2018-06-12 22:45:16 +00:00
Begin implementing error images
This commit is contained in:
parent
dd10edb281
commit
4f1fc0f211
1 changed files with 26 additions and 20 deletions
|
@ -12,6 +12,7 @@ namespace GalleryShare
|
|||
{
|
||||
public static void GenerateThumbnailPng(string imagePath, Size thumbnailBounds, Stream outputStream)
|
||||
{
|
||||
try {
|
||||
using (Bitmap rawImage = new Bitmap(imagePath)) {
|
||||
float scaleFactor = Math.Min(
|
||||
thumbnailBounds.Width / (float)rawImage.Width,
|
||||
|
@ -35,6 +36,11 @@ namespace GalleryShare
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (Exception error)
|
||||
{
|
||||
throw new NotImplementedException("Error images haven't been implemented yet.", error);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue