C# 클래스 Serenity.Web.ImageChecker

checks stream data if valid image file and validate required conditions.
파일 보기 프로젝트 열기: volkanceylan/Serenity 1 사용 예제들

공개 메소드들

메소드 설명
CheckSizeConstraints ( int width, int height ) : ImageCheckResult

Checks an image width and height against size constraints

CheckStream ( Stream inputStream ) : ImageCheckResult

Use this overload to check an image from a stream.

CheckStream ( Stream inputStream, bool returnImage, Image &image ) : ImageCheckResult

Checks if the given image if it is a valid or not. If so, controls its compliance to constraints

FormatErrorMessage ( ImageCheckResult result ) : string

메소드 상세

CheckSizeConstraints() 공개 메소드

Checks an image width and height against size constraints
public CheckSizeConstraints ( int width, int height ) : ImageCheckResult
width int /// Image width.
height int /// Image height.
리턴 ImageCheckResult

CheckStream() 공개 메소드

Use this overload to check an image from a stream.
public CheckStream ( Stream inputStream ) : ImageCheckResult
inputStream Stream /// Stream with image data
리턴 ImageCheckResult

CheckStream() 공개 메소드

Checks if the given image if it is a valid or not. If so, controls its compliance to constraints
public CheckStream ( Stream inputStream, bool returnImage, Image &image ) : ImageCheckResult
inputStream Stream /// Stream which contains image data
returnImage bool /// Does image required to be returned? If not requested, it will be disposed at the end of processing
image Image /// When method returns contains the image object. If returnImage false it will contain null
리턴 ImageCheckResult

FormatErrorMessage() 공개 메소드

public FormatErrorMessage ( ImageCheckResult result ) : string
result ImageCheckResult
리턴 string