Show / Hide Table of Contents

Class ResizeImageAttribute

Inheritance
object
Attribute
ActionFilterAttribute
ResizeImageAttribute
Implements
IActionFilter
IAsyncActionFilter
IResultFilter
IAsyncResultFilter
IOrderedFilter
IFilterMetadata
Inherited Members
ActionFilterAttribute.OnActionExecuting(ActionExecutingContext)
ActionFilterAttribute.OnActionExecuted(ActionExecutedContext)
ActionFilterAttribute.OnResultExecuting(ResultExecutingContext)
ActionFilterAttribute.OnResultExecuted(ResultExecutedContext)
ActionFilterAttribute.OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)
ActionFilterAttribute.Order
Attribute.GetCustomAttributes(MemberInfo, Type)
Attribute.GetCustomAttributes(MemberInfo, Type, bool)
Attribute.GetCustomAttributes(MemberInfo)
Attribute.GetCustomAttributes(MemberInfo, bool)
Attribute.IsDefined(MemberInfo, Type)
Attribute.IsDefined(MemberInfo, Type, bool)
Attribute.GetCustomAttribute(MemberInfo, Type)
Attribute.GetCustomAttribute(MemberInfo, Type, bool)
Attribute.GetCustomAttributes(ParameterInfo)
Attribute.GetCustomAttributes(ParameterInfo, Type)
Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
Attribute.GetCustomAttributes(ParameterInfo, bool)
Attribute.IsDefined(ParameterInfo, Type)
Attribute.IsDefined(ParameterInfo, Type, bool)
Attribute.GetCustomAttribute(ParameterInfo, Type)
Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
Attribute.GetCustomAttributes(Module, Type)
Attribute.GetCustomAttributes(Module)
Attribute.GetCustomAttributes(Module, bool)
Attribute.GetCustomAttributes(Module, Type, bool)
Attribute.IsDefined(Module, Type)
Attribute.IsDefined(Module, Type, bool)
Attribute.GetCustomAttribute(Module, Type)
Attribute.GetCustomAttribute(Module, Type, bool)
Attribute.GetCustomAttributes(Assembly, Type)
Attribute.GetCustomAttributes(Assembly, Type, bool)
Attribute.GetCustomAttributes(Assembly)
Attribute.GetCustomAttributes(Assembly, bool)
Attribute.IsDefined(Assembly, Type)
Attribute.IsDefined(Assembly, Type, bool)
Attribute.GetCustomAttribute(Assembly, Type)
Attribute.GetCustomAttribute(Assembly, Type, bool)
Attribute.Equals(object)
Attribute.GetHashCode()
Attribute.Match(object)
Attribute.IsDefaultAttribute()
Attribute.TypeId
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: Volo.Abp.Imaging
Assembly: Volo.Abp.Imaging.AspNetCore.dll
Syntax
public class ResizeImageAttribute : ActionFilterAttribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter, IFilterMetadata

Constructors

ResizeImageAttribute(int, int, params string[])

Declaration
public ResizeImageAttribute(int width, int height, params string[] parameters)
Parameters
Type Name Description
int width
int height
string[] parameters

ResizeImageAttribute(int, params string[])

Declaration
public ResizeImageAttribute(int size, params string[] parameters)
Parameters
Type Name Description
int size
string[] parameters

Properties

Height

Declaration
public int? Height { get; }
Property Value
Type Description
int?

Mode

Declaration
public ImageResizeMode Mode { get; set; }
Property Value
Type Description
ImageResizeMode

Parameters

Declaration
public string[] Parameters { get; }
Property Value
Type Description
string[]

Width

Declaration
public int? Width { get; }
Property Value
Type Description
int?

Methods

OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)

Declaration
public override Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
Parameters
Type Name Description
ActionExecutingContext context
ActionExecutionDelegate next
Returns
Type Description
Task
Overrides
ActionFilterAttribute.OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)

ResizeImageAsync(IFormFile, IImageResizer)

Declaration
protected virtual Task<IFormFile> ResizeImageAsync(IFormFile file, IImageResizer imageResizer)
Parameters
Type Name Description
IFormFile file
IImageResizer imageResizer
Returns
Type Description
Task<IFormFile>

ResizeImageAsync(byte[], IImageResizer)

Declaration
protected virtual Task<byte[]> ResizeImageAsync(byte[] bytes, IImageResizer imageResizer)
Parameters
Type Name Description
byte[] bytes
IImageResizer imageResizer
Returns
Type Description
Task<byte[]>

ResizeImageAsync(Stream, IImageResizer)

Declaration
protected virtual Task<Stream> ResizeImageAsync(Stream stream, IImageResizer imageResizer)
Parameters
Type Name Description
Stream stream
IImageResizer imageResizer
Returns
Type Description
Task<Stream>

ResizeImageAsync(IRemoteStreamContent, IImageResizer)

Declaration
protected virtual Task<IRemoteStreamContent> ResizeImageAsync(IRemoteStreamContent remoteStreamContent, IImageResizer imageResizer)
Parameters
Type Name Description
IRemoteStreamContent remoteStreamContent
IImageResizer imageResizer
Returns
Type Description
Task<IRemoteStreamContent>

Implements

IActionFilter
IAsyncActionFilter
IResultFilter
IAsyncResultFilter
IOrderedFilter
IFilterMetadata

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform