ImageButton & ImageSplitButton
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Avalonia.Media;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Media;
|
||||
using Pilz.UI.Symbols;
|
||||
|
||||
namespace Pilz.UI.AvaloniaUI.Symbols;
|
||||
|
||||
@@ -8,4 +10,24 @@ public class SymbolProxy<TSymbols>(SymbolFactory<TSymbols> factory, TSymbols ima
|
||||
{
|
||||
return factory.GetImageSource(image);
|
||||
}
|
||||
|
||||
public Image? GetImage(double width, double height)
|
||||
{
|
||||
return factory.GetImage(image, width, height);
|
||||
}
|
||||
|
||||
public Image? GetImage(Avalonia.Size size)
|
||||
{
|
||||
return factory.GetImage(image, size);
|
||||
}
|
||||
|
||||
public Image? GetImage(System.Drawing.Size size)
|
||||
{
|
||||
return factory.GetImage(image, size);
|
||||
}
|
||||
|
||||
public Image? GetImage(SymbolSize size)
|
||||
{
|
||||
return factory.GetImage(image, size);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user