Class ThumbnailSettings
- Namespace
- Dynamicweb.Imaging
- Assembly
- Dynamicweb.Core.dll
Represents settings used for image thumbnail generation.
[Serializable]
public class ThumbnailSettings
- Inheritance
-
ThumbnailSettings
- Inherited Members
Properties
CropOffset
Gets or sets crop mode
public CropMode CropOffset { get; set; }
Property Value
- CropMode
The crop mode
Height
Gets or sets height
public int Height { get; set; }
Property Value
- int
The height
LastApply
Gets or sets last apply time stamp
public DateTime LastApply { get; set; }
Property Value
- DateTime
The last apply time stamp
PostfixName
Gets or sets postfix name
public string? PostfixName { get; set; }
Property Value
- string
The postfix name
Quality
Gets or sets quality
public int Quality { get; set; }
Property Value
- int
The quality
Selected
Gets or sets flag indicates whether settings are selected
public bool Selected { get; set; }
Property Value
- bool
True if selected otherwise false
SubfolderName
Gets or sets sub folder name
public string? SubfolderName { get; set; }
Property Value
- string
The sub folder name
Width
Gets or sets width
public int Width { get; set; }
Property Value
- int
The width
Methods
GetThumbnailName(string, string, bool)
Gets thumbnail file path
public string GetThumbnailName(string imageFolder, string imageName, bool encode)
Parameters
imageFolder
stringImages folder path
imageName
stringImage name
encode
boolBoolean value indicates whether to encode image name