Method | Description | |
---|---|---|
Picture ( this content ) : |
Creates a new picture from an IPublishedContent to manipulate.
|
|
Picture ( this helper, IPublishedContent content ) : |
Creates a new picture from an IPublishedContent to manipulate.
|
|
Source ( this picture, string media, int width, int height = null ) : |
Adds new source element with specified media, width and or height.
|
|
Srcset ( this picture, int width, int height = null ) : |
Adds srcset to picture img elemet with specefied height and width.
|
public static Picture ( this content ) : |
||
content | this | |
return |
public static Picture ( this helper, IPublishedContent content ) : |
||
helper | this | |
content | IPublishedContent | |
return |
public static Source ( this picture, string media, int width, int height = null ) : |
||
picture | this | |
media | string | |
width | int | |
height | int | |
return |
public static Srcset ( this picture, int width, int height = null ) : |
||
picture | this | |
width | int | |
height | int | |
return |