C# Class mobSocial.Data.Helpers.PictureUtility

Show file Open project: mobsoftware/mobsocial

Public Methods

Method Description
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

Method Details

GetContentType() public static method

public static GetContentType ( string fileExtension ) : string
fileExtension string
return string

GetImageFormatFromContentType() public static method

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

ParsePictureSize() public static method

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
return mobSocial.Core.Infrastructure.Media.PictureSize