Table of Contents

Class CPImageBaseClass.ImgSrcSetResult

Namespace
Contensive.BaseClasses
Assembly
CPBase.dll

Result of responsive srcset generation, containing the attribute values needed for a responsive img tag.

public class CPImageBaseClass.ImgSrcSetResult
Inheritance
CPImageBaseClass.ImgSrcSetResult
Inherited Members

Properties

imageHeight

Height of the largest variant in pixels, for the img height attribute.

public int imageHeight { get; set; }

Property Value

int

imageWidth

Width of the largest variant in pixels, for the img width attribute.

public int imageWidth { get; set; }

Property Value

int

sizes

sizes attribute value, e.g. "(max-width: 1200px) 100vw, 1200px".

public string sizes { get; set; }

Property Value

string

src

Fallback src URL (largest size, for browsers that don't support srcset).

public string src { get; set; }

Property Value

string

srcset

srcset attribute value, e.g. "image-400x0.webp 400w, image-800x0.webp 800w".

public string srcset { get; set; }

Property Value

string