C# 클래스 ImageResizer.FluentExtensions.StyleExpression

As expression for configuring image style options
상속: ImageUrlBuilderExpression
파일 보기 프로젝트 열기: benfoster/ImageResizer.FluentExtensions

공개 메소드들

메소드 설명
BackgroundColor ( string backgroundColor ) : StyleExpression

Sets the background/whitespace color.

BorderColor ( string borderColor ) : StyleExpression

Sets the border color

BorderWidth ( int borderWidth ) : StyleExpression

Sets the width of the image border

DropShadow ( int shadowWidth, string shadowColor ) : DropShadowExpression

Adds a drop shadow to the image. Requires the drop shadow plugin. For more information see http://imageresizing.net/plugins/dropshadow.

Margin ( int width ) : StyleExpression

Sets a universal margin for the image

Margin ( int left, int top, int right, int bottom ) : StyleExpression

Sets the left, top, right and bottom margin widths

PaddingColor ( string paddingColor ) : StyleExpression

Sets the padding color (defaults to background color)

PaddingWidth ( int paddingWidth ) : StyleExpression

Sets the padding width

비공개 메소드들

메소드 설명
StyleExpression ( ImageUrlBuilder builder ) : System

메소드 상세

BackgroundColor() 공개 메소드

Sets the background/whitespace color.
public BackgroundColor ( string backgroundColor ) : StyleExpression
backgroundColor string Either a color name or 6 character hex code e.g. FFFFFF
리턴 StyleExpression

BorderColor() 공개 메소드

Sets the border color
public BorderColor ( string borderColor ) : StyleExpression
borderColor string Either a color name or 6 character hex code e.g. FFFFFF
리턴 StyleExpression

BorderWidth() 공개 메소드

Sets the width of the image border
public BorderWidth ( int borderWidth ) : StyleExpression
borderWidth int The desired width in pixels
리턴 StyleExpression

DropShadow() 공개 메소드

Adds a drop shadow to the image. Requires the drop shadow plugin. For more information see http://imageresizing.net/plugins/dropshadow.
public DropShadow ( int shadowWidth, string shadowColor ) : DropShadowExpression
shadowWidth int The desired shadow width in pixels. 1
shadowColor string Configure the shade and opacity of the drop-shadow black|rrggbbaa
리턴 DropShadowExpression

Margin() 공개 메소드

Sets a universal margin for the image
public Margin ( int width ) : StyleExpression
width int The desired margin size in pixels
리턴 StyleExpression

Margin() 공개 메소드

Sets the left, top, right and bottom margin widths
public Margin ( int left, int top, int right, int bottom ) : StyleExpression
left int
top int
right int
bottom int
리턴 StyleExpression

PaddingColor() 공개 메소드

Sets the padding color (defaults to background color)
public PaddingColor ( string paddingColor ) : StyleExpression
paddingColor string Either a color name or 6 character hex code e.g. FFFFFF
리턴 StyleExpression

PaddingWidth() 공개 메소드

Sets the padding width
public PaddingWidth ( int paddingWidth ) : StyleExpression
paddingWidth int The desired width in pixels
리턴 StyleExpression