C# 클래스 mobSocial.Data.Helpers.PictureUtility

파일 보기 프로젝트 열기: mobsoftware/mobsocial

공개 메소드들

메소드 설명
GetContentType ( string fileExtension ) : string
GetImageFormatFromContentType ( string contentType ) : ImageFormat

Gets image format from the content type

ParsePictureSize ( string pictureSize, string pictureName ) : PictureSize

Parses pictureSize string and returns a PictureSize instance if a valid pictureSize is passed We expect pictureSize as one of WidthxHeight|Width*Height|WidthXHeight|Width,Height

메소드 상세

GetContentType() 공개 정적인 메소드

public static GetContentType ( string fileExtension ) : string
fileExtension string
리턴 string

GetImageFormatFromContentType() 공개 정적인 메소드

Gets image format from the content type
public static GetImageFormatFromContentType ( string contentType ) : ImageFormat
contentType string
리턴 System.Drawing.Imaging.ImageFormat

ParsePictureSize() 공개 정적인 메소드

Parses pictureSize string and returns a PictureSize instance if a valid pictureSize is passed We expect pictureSize as one of WidthxHeight|Width*Height|WidthXHeight|Width,Height
public static ParsePictureSize ( string pictureSize, string pictureName ) : PictureSize
pictureSize string
pictureName string
리턴 mobSocial.Core.Infrastructure.Media.PictureSize