mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 05:34:16 -04:00
Address comments
This commit is contained in:
parent
c189d31a2b
commit
77eba9cc44
@ -230,7 +230,7 @@ namespace Emby.Drawing.Skia
|
|||||||
return tempPath;
|
return tempPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static SKEncodedOrigin GetSKCodecOrigin(ImageOrientation? orientation)
|
private static SKEncodedOrigin GetSKEncodedOrigin(ImageOrientation? orientation)
|
||||||
{
|
{
|
||||||
if (!orientation.HasValue)
|
if (!orientation.HasValue)
|
||||||
{
|
{
|
||||||
@ -275,7 +275,7 @@ namespace Emby.Drawing.Skia
|
|||||||
{
|
{
|
||||||
if (codec == null)
|
if (codec == null)
|
||||||
{
|
{
|
||||||
origin = GetSKCodecOrigin(orientation);
|
origin = GetSKEncodedOrigin(orientation);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -291,7 +291,7 @@ namespace Emby.Drawing.Skia
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
origin = GetSKCodecOrigin(orientation);
|
origin = GetSKEncodedOrigin(orientation);
|
||||||
}
|
}
|
||||||
|
|
||||||
return bitmap;
|
return bitmap;
|
||||||
@ -594,7 +594,10 @@ namespace Emby.Drawing.Skia
|
|||||||
if (hasForegroundColor)
|
if (hasForegroundColor)
|
||||||
{
|
{
|
||||||
Double opacity;
|
Double opacity;
|
||||||
if (!Double.TryParse(options.ForegroundLayer, out opacity)) opacity = .4;
|
if (!Double.TryParse(options.ForegroundLayer, out opacity))
|
||||||
|
{
|
||||||
|
opacity = .4;
|
||||||
|
}
|
||||||
|
|
||||||
canvas.DrawColor(new SKColor(0, 0, 0, (Byte)((1 - opacity) * 0xFF)), SKBlendMode.SrcOver);
|
canvas.DrawColor(new SKColor(0, 0, 0, (Byte)((1 - opacity) * 0xFF)), SKBlendMode.SrcOver);
|
||||||
}
|
}
|
||||||
@ -676,4 +679,4 @@ namespace Emby.Drawing.Skia
|
|||||||
get { return true; }
|
get { return true; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,4 +76,4 @@ namespace Rssdp
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user