Class SkiaSharpInitialsPictureRenderer
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity.UI
Assembly: IRM.AspNetCore.Identity.UI.dll
Syntax
public class SkiaSharpInitialsPictureRenderer : IInitialsPictureRenderer
Methods
RenderInitialsPicture(String, Byte, CancellationToken)
Renders a picture with the supplied initials.
Declaration
public Task<Stream> RenderInitialsPicture(string initials, byte size = 32, CancellationToken cancellationToken = default(CancellationToken))
Parameters
String
initials
The initials to render in the picture. |
System.Byte
size
The size of the picture to render. Should be between 32 and 80 pixels. |
System.Threading.CancellationToken
cancellationToken
The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled. |
Returns
System.Threading.Tasks.Task<System.IO.Stream>
The System.Threading.Tasks.Task that represents the asynchronous operation, with the System.IO.Stream containing the picture. |