C# Class ResizingClient.ResizingUtil

Mostrar archivo Open project: chsword/ResizingServer

Public Properties

Property Type Description
ApiKey string
Host string
UploadUrl string

Public Methods

Method Description
FormatUrl ( string format, int width, int height, ResizingMode mode = ResizingMode.Crop ) : string
Upload ( Stream stream, string filename, string category ) : Task
Upload ( byte bytes, string filename, string category ) : Task

Private Methods

Method Description
GetMode ( ResizingMode mode ) : string

Method Details

FormatUrl() public static method

public static FormatUrl ( string format, int width, int height, ResizingMode mode = ResizingMode.Crop ) : string
format string
width int
height int
mode ResizingMode
return string

Upload() public static method

public static Upload ( Stream stream, string filename, string category ) : Task
stream Stream
filename string
category string
return Task

Upload() public static method

public static Upload ( byte bytes, string filename, string category ) : Task
bytes byte
filename string
category string
return Task

Property Details

ApiKey public_oe static_oe property

public static string ApiKey
return string

Host public_oe static_oe property

public static string Host
return string

UploadUrl public_oe static_oe property

public static string UploadUrl
return string