Class ImageFormatHelper
Inheritance
System.Object
ImageFormatHelper
Assembly: Volo.Blogging.Application.dll
Syntax
public class ImageFormatHelper : object
Methods
GetImageRawFormat(Byte[])
Declaration
public static ImageFormat GetImageRawFormat(byte[] fileBytes)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
fileBytes |
|
Returns
| Type |
Description |
| ImageFormat |
|
IsValidImage(Byte[], ICollection<ImageFormat>)
Declaration
public static bool IsValidImage(byte[] fileBytes, ICollection<ImageFormat> validFormats)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
fileBytes |
|
| ICollection<ImageFormat> |
validFormats |
|
Returns
| Type |
Description |
| System.Boolean |
|
Extension Methods