A cross-platform UI framework for .NET
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.
 
 
 

41 lines
1.2 KiB

// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.IO;
namespace Avalonia.Platform
{
/// <summary>
/// Defines the platform-specific interface for a <see cref="Avalonia.Media.Imaging.Bitmap"/>.
/// </summary>
public interface IBitmapImpl : IDisposable
{
/// <summary>
/// Gets the dots per inch (DPI) of the image.
/// </summary>
Vector Dpi { get; }
/// <summary>
/// Gets the size of the bitmap, in device pixels.
/// </summary>
PixelSize PixelSize { get; }
/// <summary>
/// Version of the pixel data
/// </summary>
int Version { get; }
/// <summary>
/// Saves the bitmap to a file.
/// </summary>
/// <param name="fileName">The filename.</param>
void Save(string fileName);
/// <summary>
/// Saves the bitmap to a stream in png format.
/// </summary>
/// <param name="stream">The stream.</param>
void Save(Stream stream);
}
}