Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions IronSoftware.Drawing/IronSoftware.Drawing.Common/AnyBitmap.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,6 +14,30 @@ public partial class AnyBitmap
{
private byte[] Binary { get; set; }

/// <summary>
/// Width of the image.
/// </summary>
public int Width
{
get
{
SkiaSharp.SKBitmap sKBitmap = SkiaSharp.SKBitmap.Decode(Binary);
return sKBitmap.Width;
}
}

/// <summary>
/// Height of the image.
/// </summary>
public int Height
{
get
{
SkiaSharp.SKBitmap sKBitmap = SkiaSharp.SKBitmap.Decode(Binary);
return sKBitmap.Height;
}
}

/// <summary>
/// Number of raw image bytes stored
/// </summary>
Expand Down
Loading