C# 클래스 mobSocial.Core.Infrastructure.Media.PictureSizeExtensions

Extensions for picture size.
파일 보기 프로젝트 열기: mobsoftware/mobsocial

공개 메소드들

메소드 설명
MapSize ( this pictureSizes, PictureSize size ) : void

Maps a new size to picture sizes collection

UpdateOrInsertSize ( this pictureSizes, PictureSize size ) : void

Overrides existing size with name as provided size with new values. Adds if the size doesn't exist

UpdateOrInsertSize ( this pictureSizes, string sizeName, int newWidth, int newHeight ) : void

Overrides existing size with name as provided size with new values. Adds if the size doesn't exist

메소드 상세

MapSize() 공개 정적인 메소드

Maps a new size to picture sizes collection
public static MapSize ( this pictureSizes, PictureSize size ) : void
pictureSizes this
size PictureSize
리턴 void

UpdateOrInsertSize() 공개 정적인 메소드

Overrides existing size with name as provided size with new values. Adds if the size doesn't exist
public static UpdateOrInsertSize ( this pictureSizes, PictureSize size ) : void
pictureSizes this
size PictureSize
리턴 void

UpdateOrInsertSize() 공개 정적인 메소드

Overrides existing size with name as provided size with new values. Adds if the size doesn't exist
public static UpdateOrInsertSize ( this pictureSizes, string sizeName, int newWidth, int newHeight ) : void
pictureSizes this
sizeName string
newWidth int
newHeight int
리턴 void