C# Класс mobSocial.Data.Helpers.PictureUtility

Показать файл Открыть проект

Открытые методы

Метод Описание
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