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
| Type | Name | 
|---|---|
| Stream | stream | 
| System.Int32 | newWidth | 
| System.Int32 | newHeight | 
ResizeToPng(SKBitmap, Int32, Int32)
View Source
Declaration
public Stream ResizeToPng(SKBitmap img, int newWidth, int newHeight)
Returns
Stream
Parameters
| Type | Name | 
|---|---|
| SKBitmap | img | 
| System.Int32 | newWidth | 
| System.Int32 | newHeight | 
Crop(SKBitmap, Int32, Int32)
View Source
Declaration
public static SKBitmap Crop(SKBitmap img, int newWidth, int newHeight)
Returns
SKBitmap
Parameters
| Type | Name | 
|---|---|
| SKBitmap | img | 
| System.Int32 | newWidth | 
| System.Int32 | newHeight | 
Inherited Methods
Resize(Stream, Int32, Int32)
View Source
Declaration
public abstract Stream Resize(Stream stream, int newWidth, int newHeight)
Returns
System.IO.Stream
Parameters
| Type | Name | 
|---|---|
| System.IO.Stream | stream | 
| System.Int32 | newWidth | 
| System.Int32 | newHeight | 
Resize(Stream, String)
View Source
Declaration
public virtual Stream Resize(Stream origStream, string savePhotoSize = null)
Returns
System.IO.Stream
Parameters
| Type | Name | 
|---|---|
| System.IO.Stream | origStream | 
| System.String | savePhotoSize |