C# Class mobSocial.Data.Helpers.PictureUtility

Afficher le fichier Open project: mobsoftware/mobsocial

Méthodes publiques

Méthode 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 méthode

public static GetContentType ( string fileExtension ) : string
fileExtension string
Résultat string

GetImageFormatFromContentType() public static méthode

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

ParsePictureSize() public static méthode

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
Résultat mobSocial.Core.Infrastructure.Media.PictureSize