|
|
@ -82,7 +82,8 @@ namespace Emby.Drawing.Skia
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 4; i++)
|
|
|
|
for (int i = 0; i < 4; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
using (var currentBitmap = SKBitmap.Decode(paths[imageIndex]))
|
|
|
|
SKCodecOrigin origin;
|
|
|
|
|
|
|
|
using (var currentBitmap = SkiaEncoder.Decode(paths[imageIndex], false, out origin))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// resize to the same aspect as the original
|
|
|
|
// resize to the same aspect as the original
|
|
|
|
int iWidth = (int)Math.Abs(iHeight * currentBitmap.Width / currentBitmap.Height);
|
|
|
|
int iWidth = (int)Math.Abs(iHeight * currentBitmap.Width / currentBitmap.Height);
|
|
|
@ -163,7 +164,8 @@ namespace Emby.Drawing.Skia
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (var y = 0; y < 2; y++)
|
|
|
|
for (var y = 0; y < 2; y++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
using (var currentBitmap = SKBitmap.Decode(paths[imageIndex]))
|
|
|
|
SKCodecOrigin origin;
|
|
|
|
|
|
|
|
using (var currentBitmap = SkiaEncoder.Decode(paths[imageIndex], false, out origin))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
using (var resizedBitmap = new SKBitmap(cellWidth, cellHeight, currentBitmap.ColorType, currentBitmap.AlphaType))
|
|
|
|
using (var resizedBitmap = new SKBitmap(cellWidth, cellHeight, currentBitmap.ColorType, currentBitmap.AlphaType))
|
|
|
|
{
|
|
|
|
{
|
|
|
|