Метод | Описание | |
---|---|---|
ByteArrayToImage ( byte byteArray ) : Image | ||
CreateGifThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool | ||
CreateThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool | ||
CreateVideoThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool | ||
GenerateImagePath ( int id, string guid, string storageRoot ) : string | ||
GetComputedImageSize ( int width, int height ) : |
||
ImageToByteArray ( Image image ) : byte[] | ||
ResizeImage ( Image mg, |
||
SaveImage ( Image image, string destinationPath, string fileName ) : bool | ||
SaveImage ( byte bytes, string destinationPath, string fileName ) : bool |
Метод | Описание | |
---|---|---|
GetEncoder ( |
public ByteArrayToImage ( byte byteArray ) : Image | ||
byteArray | byte | |
Результат | Image |
public CreateGifThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool | ||
filename | string | |
destinationPath | string | |
thumbnailPrefix | string | |
Результат | bool |
public CreateThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool | ||
filename | string | |
destinationPath | string | |
thumbnailPrefix | string | |
Результат | bool |
public CreateVideoThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool | ||
filename | string | |
destinationPath | string | |
thumbnailPrefix | string | |
Результат | bool |
public GenerateImagePath ( int id, string guid, string storageRoot ) : string | ||
id | int | |
guid | string | |
storageRoot | string | |
Результат | string |
public GetComputedImageSize ( int width, int height ) : |
||
width | int | |
height | int | |
Результат |
public ImageToByteArray ( Image image ) : byte[] | ||
image | Image | |
Результат | byte[] |
public ResizeImage ( Image mg, |
||
mg | Image | |
newSize | ||
Результат | Image |
public SaveImage ( Image image, string destinationPath, string fileName ) : bool | ||
image | Image | |
destinationPath | string | |
fileName | string | |
Результат | bool |
public SaveImage ( byte bytes, string destinationPath, string fileName ) : bool | ||
bytes | byte | |
destinationPath | string | |
fileName | string | |
Результат | bool |