Skip to main content

SkiaImageProvider

Assembly: ServiceStack.Skia.dll​
View Source​
Declaration
public class SkiaImageProvider : ImageProvider

Inherited Properties​

Instance​

View Source​
Declaration
public static ImageProvider Instance { get; set; }

Methods​

Resize(Stream, Int32, Int32)​

View Source​
Declaration
public override Stream Resize(Stream stream, int newWidth, int newHeight)
Returns​

Stream

Parameters​
TypeName
Streamstream
System.Int32newWidth
System.Int32newHeight

ResizeToPng(SKBitmap, Int32, Int32)​

View Source​
Declaration
public Stream ResizeToPng(SKBitmap img, int newWidth, int newHeight)
Returns​

Stream

Parameters​
TypeName
SKBitmapimg
System.Int32newWidth
System.Int32newHeight

Crop(SKBitmap, Int32, Int32)​

View Source​
Declaration
public static SKBitmap Crop(SKBitmap img, int newWidth, int newHeight)
Returns​

SKBitmap

Parameters​
TypeName
SKBitmapimg
System.Int32newWidth
System.Int32newHeight

Inherited Methods​

Resize(Stream, Int32, Int32)​

View Source​
Declaration
public abstract Stream Resize(Stream stream, int newWidth, int newHeight)
Returns​

System.IO.Stream

Parameters​
TypeName
System.IO.Streamstream
System.Int32newWidth
System.Int32newHeight

Resize(Stream, String)​

View Source​
Declaration
public virtual Stream Resize(Stream origStream, string savePhotoSize = null)
Returns​

System.IO.Stream

Parameters​
TypeName
System.IO.StreamorigStream
System.StringsavePhotoSize