Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
1004 B

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
namespace Squidex.Infrastructure.Assets
{
public sealed class ImageInfo
{
public string? Format { get; set; }
public int PixelWidth { get; }
public int PixelHeight { get; }
public bool IsRotatedOrSwapped { get; }
public ImageInfo(int pixelWidth, int pixelHeight, bool isRotatedOrSwapped)
{
Guard.GreaterThan(pixelWidth, 0, nameof(pixelWidth));
Guard.GreaterThan(pixelHeight, 0, nameof(pixelHeight));
PixelWidth = pixelWidth;
PixelHeight = pixelHeight;
IsRotatedOrSwapped = isRotatedOrSwapped;
}
}
}