Add AlphaFormat to ILockedFramebuffer by MrJul · Pull Request #20556 · AvaloniaUI/Avalonia (original) (raw)
Those changes weren't done at the time bitmap transcoding was introduced because they were breaking.
namespace Avalonia.Media.Imaging { public class Bitmap : Avalonia.Media.IImage, Avalonia.Media.IImageBrushSource {
public void CopyPixels(ILockedFramebuffer buffer, AlphaFormat alphaFormat);
} namespace Avalonia.Platform { public interface ILockedFramebuffer {public void CopyPixels(ILockedFramebuffer buffer); }AlphaFormat AlphaFormat { get; } } public interface IReadableBitmapImpl : IBitmapImpl {AlphaFormat? AlphaFormat { get; } }
public interface IReadableBitmapWithAlphaImpl : IReadableBitmapImpl{AlphaFormat? AlphaFormat { get; }} public class LockedFramebuffer : ILockedFramebuffer {
public LockedFramebuffer(IntPtr address, PixelSize size, int rowBytes, Vector dpi, PixelFormat format, AlphaFormat alphaFormat, Action? onDispose);
public LockedFramebuffer(IntPtr address, PixelSize size, int rowBytes, Vector dpi, PixelFormat format, Action? onDispose);
}public AlphaFormat AlphaFormat { get; } }