C# 클래스 Subtext.Framework.Images

파일 보기 프로젝트 열기: ayende/Subtext

공개 메소드들

메소드 설명
DeleteImage ( Image image ) : void
EnsureDirectory ( string directoryPath ) : void
GalleryVirtualUrl ( int categoryid ) : string

Returns the url path to the gallery for the specified category.

GetFileStream ( HttpPostedFile objFile ) : byte[]

gets the bytes for the posted file

GetImagesByCategoryID ( int catID, bool activeOnly ) : ImageCollection
GetSingleImage ( int imageId, bool activeOnly ) : Image
InsertImage ( Image image, byte Buffer ) : int

Inserts the image.

LocalGalleryFilePath ( int categoryid ) : string

Returns the physical gallery path for the specified category.

MakeAlbumImages ( Image image ) : void

Saves two images. A normal image for the web site and then a thumbnail.

ResizeImage ( int width, int height, int maxWidth, int maxHeight ) : Size
SaveImage ( byte buffer, string fileName ) : bool

Saves the image.

Update ( Image image, byte buffer ) : void
UpdateImage ( Image image ) : void

Updates the image.

ValidateFile ( string filepath ) : bool

Validates that the file is allowed.

메소드 상세

DeleteImage() 공개 정적인 메소드

public static DeleteImage ( Image image ) : void
image Subtext.Framework.Components.Image
리턴 void

EnsureDirectory() 공개 정적인 메소드

public static EnsureDirectory ( string directoryPath ) : void
directoryPath string
리턴 void

GalleryVirtualUrl() 공개 정적인 메소드

Returns the url path to the gallery for the specified category.
public static GalleryVirtualUrl ( int categoryid ) : string
categoryid int The categoryid.
리턴 string

GetFileStream() 공개 정적인 메소드

gets the bytes for the posted file
public static GetFileStream ( HttpPostedFile objFile ) : byte[]
objFile HttpPostedFile The obj file.
리턴 byte[]

GetImagesByCategoryID() 공개 정적인 메소드

public static GetImagesByCategoryID ( int catID, bool activeOnly ) : ImageCollection
catID int
activeOnly bool
리턴 ImageCollection

GetSingleImage() 공개 정적인 메소드

public static GetSingleImage ( int imageId, bool activeOnly ) : Image
imageId int
activeOnly bool
리턴 Subtext.Framework.Components.Image

InsertImage() 공개 정적인 메소드

Inserts the image.
public static InsertImage ( Image image, byte Buffer ) : int
image Subtext.Framework.Components.Image The image.
Buffer byte The buffer.
리턴 int

LocalGalleryFilePath() 공개 정적인 메소드

Returns the physical gallery path for the specified category.
public static LocalGalleryFilePath ( int categoryid ) : string
categoryid int The categoryid.
리턴 string

MakeAlbumImages() 공개 정적인 메소드

Saves two images. A normal image for the web site and then a thumbnail.
public static MakeAlbumImages ( Image image ) : void
image Subtext.Framework.Components.Image Original image to process.
리턴 void

ResizeImage() 공개 정적인 메소드

public static ResizeImage ( int width, int height, int maxWidth, int maxHeight ) : Size
width int
height int
maxWidth int
maxHeight int
리턴 System.Drawing.Size

SaveImage() 공개 정적인 메소드

Saves the image.
public static SaveImage ( byte buffer, string fileName ) : bool
buffer byte The buffer.
fileName string Name of the file.
리턴 bool

Update() 공개 정적인 메소드

public static Update ( Image image, byte buffer ) : void
image Subtext.Framework.Components.Image
buffer byte
리턴 void

UpdateImage() 공개 정적인 메소드

Updates the image.
public static UpdateImage ( Image image ) : void
image Subtext.Framework.Components.Image The image.
리턴 void

ValidateFile() 공개 정적인 메소드

Validates that the file is allowed.
public static ValidateFile ( string filepath ) : bool
filepath string The filepath.
리턴 bool