symbol proxy
This commit is contained in:
@@ -4,14 +4,14 @@ namespace Pilz.UI.WinForms.Symbols;
|
||||
|
||||
public abstract class SymbolFactory<TSymbols> : BaseSymbolFactory<TSymbols>, ISymbolFactory<TSymbols>
|
||||
{
|
||||
public virtual Image? GetImage(TSymbols svgImage, SymbolSize size)
|
||||
public virtual Image? GetImage(TSymbols image, SymbolSize size)
|
||||
{
|
||||
return GetImage(svgImage, ResolveCommonSize(size));
|
||||
return GetImage(image, ResolveCommonSize(size));
|
||||
}
|
||||
|
||||
public virtual Image? GetImage(TSymbols svgImage, Size size)
|
||||
public virtual Image? GetImage(TSymbols image, Size size)
|
||||
{
|
||||
using var stream = GetImageRessourceStream(svgImage);
|
||||
using var stream = GetImageRessourceStream(image);
|
||||
|
||||
if (stream is null)
|
||||
return null;
|
||||
@@ -29,4 +29,9 @@ public abstract class SymbolFactory<TSymbols> : BaseSymbolFactory<TSymbols>, ISy
|
||||
|
||||
return img;
|
||||
}
|
||||
|
||||
public ISymbolProxy GetImage(TSymbols image)
|
||||
{
|
||||
return new SymbolProxy<TSymbols>(this, image);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user