C# Class CloudinaryDotNet.Transformation

Inheritance: ICloneable
Afficher le fichier Open project: cloudinary/CloudinaryDotNet Class Usage Examples

Protected Properties

Свойство Type Description
m_htmlHeight string
m_htmlWidth string
m_nestedTransforms List
m_transformParams object>.Dictionary

Méthodes publiques

Méthode Description
Add ( string key, object value ) : Transformation
Angle ( ) : Transformation
Angle ( int value ) : Transformation
AspectRatio ( double value ) : Transformation

Add the aspect_ratio parameter to resize or crop the image to a new aspect ratio. Decimal format (e.g., 1.33 or 2.5)

AspectRatio ( int nom, int denom ) : Transformation

Add the aspect_ratio parameter to resize or crop the image to a new aspect ratio. Format - nom:denom (e.g., 4:3 or 16:9).

AspectRatio ( string value ) : Transformation
Background ( string value ) : Transformation
Border ( int width, string color ) : Transformation

Add a solid border around the image.

Border ( string value ) : Transformation

Add a solid border around the image. The value has a CSS-like format: width_style_color.

Chain ( ) : Transformation
Clone ( ) : Transformation
Color ( string value ) : Transformation

Defines the color to use for various effects.

ColorSpace ( string value ) : Transformation
Crop ( string value ) : Transformation

A crop mode that determines how to transform the image for fitting into the desired width and height dimensions.

DefaultImage ( string value ) : Transformation
Delay ( object value ) : Transformation
Density ( object value ) : Transformation

Control the density to use while converting a PDF document to images. (range: 50-300, default: 150).

Dpr ( object value ) : Transformation

Sets Device Pixel Ratio (float, integer and "auto" values are allowed"). See http://cloudinary.com/blog/how_to_automatically_adapt_website_images_to_retina_and_hidpi_devices for further info.

Effect ( string value ) : Transformation

Apply a filter or an effect on an image. The value includes the name of the effect and an additional parameter that controls the behavior of the specific effect.

Effect ( string effect, Object param ) : Transformation

Apply a filter or an effect on an image.

EndIf ( ) : Transformation
FetchFormat ( string value ) : Transformation
Flags ( ) : Transformation
Generate ( ) : string
GenerateThis ( ) : string
Gravity ( string value ) : Transformation

Decides which part of the image to keep while 'crop', 'pad' and 'fill' crop modes are used. For overlays, this decides where to place the overlay.

Height ( object value ) : Transformation

The required height of a transformed image or an overlay. Can be specified separately or together with the width value. Can also be a decimal value (e.g., 0.2) for percentage based resizing.

IfCondition ( ) : Condition

Start defining a condition, which will be completed with a call Condition.Then()

IfCondition ( string condition ) : Transformation

Define a conditional transformation defined by the condition string.

IfElse ( ) : Transformation
Named ( ) : Transformation
Opacity ( int value ) : Transformation

Manipulate image opacity in order to make the image semi-transparent.

Overlay ( BaseLayer value ) : Transformation
Overlay ( string value ) : Transformation
Page ( object value ) : Transformation

Given a multi-page PDF document, generate an image of a single page using the given index.

Prefix ( string value ) : Transformation
Quality ( object value ) : Transformation

Control the JPG compression quality. 1 is the lowest quality and 100 is the highest. The default is the original image's quality or 90% if not available. Reducing quality generates JPG images much smaller in file size.

Radius ( object value ) : Transformation
RawTransformation ( string value ) : Transformation
ResponsiveWidth ( bool value ) : Transformation

Whether to enable automatic adaptation of website images. See http://cloudinary.com/blog/how_to_automatically_adapt_website_images_to_retina_and_hidpi_devices for further info.

SetHtmlHeight ( object value ) : Transformation
SetHtmlWidth ( object value ) : Transformation
ToString ( ) : string
Transformation ( ) : System

Creates empty transformation object.

Transformation ( object>.Dictionary transformParams ) : System

Creates transformation object from single result of Actions.GetTransformResult.

Transformation ( List transforms ) : System

Creates transformation object chained with other transformations.

Underlay ( BaseLayer value ) : Transformation
Underlay ( string value ) : Transformation
Width ( object value ) : Transformation

The required width of a transformed image or an overlay. Can be specified separately or together with the height value. Can also be a decimal value (e.g., 0.2) for percentage based resizing.

X ( object value ) : Transformation

Horizontal position for custom-coordinates based cropping and overlay placement.

Y ( object value ) : Transformation

Vertical position for custom-coordinates based cropping and overlay placement.

Zoom ( double value ) : Transformation

How much zoom should be applying when detecting faces for crop, thumb or for overlays. (e.g. 0.5 will cause zoom out of x2 on both axes).

Zoom ( float value ) : Transformation

How much zoom should be applying when detecting faces for crop, thumb or for overlays. (e.g. 0.5 will cause zoom out of x2 on both axes).

Zoom ( int value ) : Transformation

How much zoom should be applying when detecting faces for crop, thumb or for overlays. (e.g. 0.5 will cause zoom out of x2 on both axes).

Zoom ( string value ) : Transformation

How much zoom should be applying when detecting faces for crop, thumb or for overlays. (e.g. 0.5 will cause zoom out of x2 on both axes).

Private Methods

Méthode Description
GetString ( object>.Dictionary options, string key ) : string
GetStringArray ( object>.Dictionary options, string key ) : string[]
ICloneable ( ) : object
ToString ( object obj ) : string

Method Details

Add() public méthode

public Add ( string key, object value ) : Transformation
key string
value object
Résultat Transformation

Angle() public méthode

public Angle ( ) : Transformation
Résultat Transformation

Angle() public méthode

public Angle ( int value ) : Transformation
value int
Résultat Transformation

AspectRatio() public méthode

Add the aspect_ratio parameter to resize or crop the image to a new aspect ratio. Decimal format (e.g., 1.33 or 2.5)
public AspectRatio ( double value ) : Transformation
value double A decimal value representing the ratio of the width divided by the height
Résultat Transformation

AspectRatio() public méthode

Add the aspect_ratio parameter to resize or crop the image to a new aspect ratio. Format - nom:denom (e.g., 4:3 or 16:9).
public AspectRatio ( int nom, int denom ) : Transformation
nom int Signifies the relative width
denom int Signifies the relative height
Résultat Transformation

AspectRatio() public méthode

public AspectRatio ( string value ) : Transformation
value string
Résultat Transformation

Background() public méthode

public Background ( string value ) : Transformation
value string
Résultat Transformation

Border() public méthode

Add a solid border around the image.
public Border ( int width, string color ) : Transformation
width int
color string
Résultat Transformation

Border() public méthode

Add a solid border around the image. The value has a CSS-like format: width_style_color.
public Border ( string value ) : Transformation
value string
Résultat Transformation

Chain() public méthode

public Chain ( ) : Transformation
Résultat Transformation

Clone() public méthode

public Clone ( ) : Transformation
Résultat Transformation

Color() public méthode

Defines the color to use for various effects.
public Color ( string value ) : Transformation
value string
Résultat Transformation

ColorSpace() public méthode

public ColorSpace ( string value ) : Transformation
value string
Résultat Transformation

Crop() public méthode

A crop mode that determines how to transform the image for fitting into the desired width and height dimensions.
public Crop ( string value ) : Transformation
value string
Résultat Transformation

DefaultImage() public méthode

public DefaultImage ( string value ) : Transformation
value string
Résultat Transformation

Delay() public méthode

public Delay ( object value ) : Transformation
value object
Résultat Transformation

Density() public méthode

Control the density to use while converting a PDF document to images. (range: 50-300, default: 150).
public Density ( object value ) : Transformation
value object
Résultat Transformation

Dpr() public méthode

Sets Device Pixel Ratio (float, integer and "auto" values are allowed"). See http://cloudinary.com/blog/how_to_automatically_adapt_website_images_to_retina_and_hidpi_devices for further info.
public Dpr ( object value ) : Transformation
value object
Résultat Transformation

Effect() public méthode

Apply a filter or an effect on an image. The value includes the name of the effect and an additional parameter that controls the behavior of the specific effect.
public Effect ( string value ) : Transformation
value string
Résultat Transformation

Effect() public méthode

Apply a filter or an effect on an image.
public Effect ( string effect, Object param ) : Transformation
effect string The name of the effect.
param Object An additional parameter that controls the behavior of the specific effect.
Résultat Transformation

EndIf() public méthode

public EndIf ( ) : Transformation
Résultat Transformation

FetchFormat() public méthode

public FetchFormat ( string value ) : Transformation
value string
Résultat Transformation

Flags() public méthode

public Flags ( ) : Transformation
Résultat Transformation

Generate() public méthode

public Generate ( ) : string
Résultat string

GenerateThis() public méthode

public GenerateThis ( ) : string
Résultat string

Gravity() public méthode

Decides which part of the image to keep while 'crop', 'pad' and 'fill' crop modes are used. For overlays, this decides where to place the overlay.
public Gravity ( string value ) : Transformation
value string
Résultat Transformation

Height() public méthode

The required height of a transformed image or an overlay. Can be specified separately or together with the width value. Can also be a decimal value (e.g., 0.2) for percentage based resizing.
public Height ( object value ) : Transformation
value object
Résultat Transformation

IfCondition() public méthode

Start defining a condition, which will be completed with a call Condition.Then()
public IfCondition ( ) : Condition
Résultat Condition

IfCondition() public méthode

Define a conditional transformation defined by the condition string.
public IfCondition ( string condition ) : Transformation
condition string A condition string.
Résultat Transformation

IfElse() public méthode

public IfElse ( ) : Transformation
Résultat Transformation

Named() public méthode

public Named ( ) : Transformation
Résultat Transformation

Opacity() public méthode

Manipulate image opacity in order to make the image semi-transparent.
public Opacity ( int value ) : Transformation
value int
Résultat Transformation

Overlay() public méthode

public Overlay ( BaseLayer value ) : Transformation
value BaseLayer
Résultat Transformation

Overlay() public méthode

public Overlay ( string value ) : Transformation
value string
Résultat Transformation

Page() public méthode

Given a multi-page PDF document, generate an image of a single page using the given index.
public Page ( object value ) : Transformation
value object
Résultat Transformation

Prefix() public méthode

public Prefix ( string value ) : Transformation
value string
Résultat Transformation

Quality() public méthode

Control the JPG compression quality. 1 is the lowest quality and 100 is the highest. The default is the original image's quality or 90% if not available. Reducing quality generates JPG images much smaller in file size.
public Quality ( object value ) : Transformation
value object
Résultat Transformation

Radius() public méthode

public Radius ( object value ) : Transformation
value object
Résultat Transformation

RawTransformation() public méthode

public RawTransformation ( string value ) : Transformation
value string
Résultat Transformation

ResponsiveWidth() public méthode

Whether to enable automatic adaptation of website images. See http://cloudinary.com/blog/how_to_automatically_adapt_website_images_to_retina_and_hidpi_devices for further info.
public ResponsiveWidth ( bool value ) : Transformation
value bool
Résultat Transformation

SetHtmlHeight() public méthode

public SetHtmlHeight ( object value ) : Transformation
value object
Résultat Transformation

SetHtmlWidth() public méthode

public SetHtmlWidth ( object value ) : Transformation
value object
Résultat Transformation

ToString() public méthode

public ToString ( ) : string
Résultat string

Transformation() public méthode

Creates empty transformation object.
public Transformation ( ) : System
Résultat System

Transformation() public méthode

Creates transformation object from single result of Actions.GetTransformResult.
public Transformation ( object>.Dictionary transformParams ) : System
transformParams object>.Dictionary One can use an element of array.
Résultat System

Transformation() public méthode

Creates transformation object chained with other transformations.
public Transformation ( List transforms ) : System
transforms List
Résultat System

Underlay() public méthode

public Underlay ( BaseLayer value ) : Transformation
value BaseLayer
Résultat Transformation

Underlay() public méthode

public Underlay ( string value ) : Transformation
value string
Résultat Transformation

Width() public méthode

The required width of a transformed image or an overlay. Can be specified separately or together with the height value. Can also be a decimal value (e.g., 0.2) for percentage based resizing.
public Width ( object value ) : Transformation
value object
Résultat Transformation

X() public méthode

Horizontal position for custom-coordinates based cropping and overlay placement.
public X ( object value ) : Transformation
value object
Résultat Transformation

Y() public méthode

Vertical position for custom-coordinates based cropping and overlay placement.
public Y ( object value ) : Transformation
value object
Résultat Transformation

Zoom() public méthode

How much zoom should be applying when detecting faces for crop, thumb or for overlays. (e.g. 0.5 will cause zoom out of x2 on both axes).
public Zoom ( double value ) : Transformation
value double
Résultat Transformation

Zoom() public méthode

How much zoom should be applying when detecting faces for crop, thumb or for overlays. (e.g. 0.5 will cause zoom out of x2 on both axes).
public Zoom ( float value ) : Transformation
value float
Résultat Transformation

Zoom() public méthode

How much zoom should be applying when detecting faces for crop, thumb or for overlays. (e.g. 0.5 will cause zoom out of x2 on both axes).
public Zoom ( int value ) : Transformation
value int
Résultat Transformation

Zoom() public méthode

How much zoom should be applying when detecting faces for crop, thumb or for overlays. (e.g. 0.5 will cause zoom out of x2 on both axes).
public Zoom ( string value ) : Transformation
value string
Résultat Transformation

Property Details

m_htmlHeight protected_oe property

protected string m_htmlHeight
Résultat string

m_htmlWidth protected_oe property

protected string m_htmlWidth
Résultat string

m_nestedTransforms protected_oe property

protected List m_nestedTransforms
Résultat List

m_transformParams protected_oe property

protected Dictionary m_transformParams
Résultat object>.Dictionary