C# 클래스 SoundInTheory.DynamicImage.Util.Util

파일 보기 프로젝트 열기: sitdap/dynamic-image

공개 메소드들

메소드 설명
CalculateShaHash ( string text ) : string

Calculates SHA1 hash

CalculateShaHash ( string text, Encoding encoding ) : string

Calculates SHA1 hash

EnsureEndWithSemiColon ( string value ) : string
GetEncoder ( DynamicImageFormat format ) : System.Windows.Media.Imaging.BitmapEncoder
MergeScript ( string firstScript, string secondScript ) : string
SendImageToHttpResponse ( HttpContext context, GeneratedImage generatedImage ) : void

비공개 메소드들

메소드 설명
Base16Encode ( byte bytes ) : string

Returns a lowercase hexadecimal encoding of the specified binary data

SaveImageStream ( GeneratedImage generatedImage, System.Stream stream ) : void

메소드 상세

CalculateShaHash() 공개 정적인 메소드

Calculates SHA1 hash
public static CalculateShaHash ( string text ) : string
text string input string
리턴 string

CalculateShaHash() 공개 정적인 메소드

Calculates SHA1 hash
public static CalculateShaHash ( string text, Encoding encoding ) : string
text string input string
encoding System.Text.Encoding Character encoding
리턴 string

EnsureEndWithSemiColon() 공개 정적인 메소드

public static EnsureEndWithSemiColon ( string value ) : string
value string
리턴 string

GetEncoder() 공개 정적인 메소드

public static GetEncoder ( DynamicImageFormat format ) : System.Windows.Media.Imaging.BitmapEncoder
format DynamicImageFormat
리턴 System.Windows.Media.Imaging.BitmapEncoder

MergeScript() 공개 정적인 메소드

public static MergeScript ( string firstScript, string secondScript ) : string
firstScript string
secondScript string
리턴 string

SendImageToHttpResponse() 공개 정적인 메소드

public static SendImageToHttpResponse ( HttpContext context, GeneratedImage generatedImage ) : void
context System.Web.HttpContext
generatedImage GeneratedImage
리턴 void