mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-24 14:40:39 +02:00
update skia
This commit is contained in:
parent
3c60445311
commit
aae64e6b87
|
@ -243,10 +243,7 @@ namespace Emby.Drawing.Skia
|
||||||
using (var resizedBitmap = new SKBitmap(width, height, bitmap.ColorType, bitmap.AlphaType))
|
using (var resizedBitmap = new SKBitmap(width, height, bitmap.ColorType, bitmap.AlphaType))
|
||||||
{
|
{
|
||||||
// scale image
|
// scale image
|
||||||
var resizeMethod = options.Image.Type == MediaBrowser.Model.Entities.ImageType.Logo ||
|
var resizeMethod = SKBitmapResizeMethod.Lanczos3;
|
||||||
options.Image.Type == MediaBrowser.Model.Entities.ImageType.Art
|
|
||||||
? SKBitmapResizeMethod.Lanczos3
|
|
||||||
: SKBitmapResizeMethod.Lanczos3;
|
|
||||||
|
|
||||||
bitmap.Resize(resizedBitmap, resizeMethod);
|
bitmap.Resize(resizedBitmap, resizeMethod);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue