C# Класс Subtext.Framework.Images

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

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

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