Dropbox .NET SDK
Show / Hide Table of Contents

Class ThumbnailArg

The thumbnail arg object

Inheritance
object
ThumbnailArg
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Dropbox.Api.Files
Assembly: Dropbox.Api.dll
Syntax
public class ThumbnailArg

Constructors

View Source

ThumbnailArg(string, ThumbnailFormat, ThumbnailSize, ThumbnailMode, ThumbnailQuality, bool?)

Initializes a new instance of the ThumbnailArg class.

Declaration
public ThumbnailArg(string path, ThumbnailFormat format = null, ThumbnailSize size = null, ThumbnailMode mode = null, ThumbnailQuality quality = null, bool? excludeMediaInfo = null)
Parameters
Type Name Description
string path

The path to the image file you want to thumbnail.

ThumbnailFormat format

The format for the thumbnail image, jpeg (default), png, or webp. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts, and web for compression.

ThumbnailSize size

The size for the thumbnail image.

ThumbnailMode mode

How to resize and crop the image to achieve the desired size.

ThumbnailQuality quality

Field is only returned for "internal" callers. Quality of the thumbnail image.

bool? excludeMediaInfo

Normally, MediaInfo is set for photo and video. When this flag is true, MediaInfo is not populated. This improves latency for use cases where media_info is not needed.

Properties

View Source

ExcludeMediaInfo

Normally, MediaInfo is set for photo and video. When this flag is true, MediaInfo is not populated. This improves latency for use cases where `media_info` is not needed.

Declaration
public bool? ExcludeMediaInfo { get; protected set; }
Property Value
Type Description
bool?
View Source

Format

The format for the thumbnail image, jpeg (default), png, or webp. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts, and web for compression.

Declaration
public ThumbnailFormat Format { get; protected set; }
Property Value
Type Description
ThumbnailFormat
View Source

Mode

How to resize and crop the image to achieve the desired size.

Declaration
public ThumbnailMode Mode { get; protected set; }
Property Value
Type Description
ThumbnailMode
View Source

Path

The path to the image file you want to thumbnail.

Declaration
public string Path { get; protected set; }
Property Value
Type Description
string
View Source

Quality

Field is only returned for "internal" callers. Quality of the thumbnail image.

Declaration
public ThumbnailQuality Quality { get; protected set; }
Property Value
Type Description
ThumbnailQuality
View Source

Size

The size for the thumbnail image.

Declaration
public ThumbnailSize Size { get; protected set; }
Property Value
Type Description
ThumbnailSize
  • View Source
In this article
Back to top Dropbox .NET SDK