C# Класс CloudinaryDotNet.Transformation

Наследование: ICloneable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_htmlHeight string
m_htmlWidth string
m_nestedTransforms List
m_transformParams object>.Dictionary

Открытые методы

Метод Описание
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).

Приватные методы

Метод Описание
GetString ( object>.Dictionary options, string key ) : string
GetStringArray ( object>.Dictionary options, string key ) : string[]
ICloneable ( ) : object
ToString ( object obj ) : string

Описание методов

Add() публичный Метод

public Add ( string key, object value ) : Transformation
key string
value object
Результат Transformation

Angle() публичный Метод

public Angle ( ) : Transformation
Результат Transformation

Angle() публичный Метод

public Angle ( int value ) : Transformation
value int
Результат Transformation

AspectRatio() публичный Метод

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
Результат Transformation

AspectRatio() публичный Метод

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
Результат Transformation

AspectRatio() публичный Метод

public AspectRatio ( string value ) : Transformation
value string
Результат Transformation

Background() публичный Метод

public Background ( string value ) : Transformation
value string
Результат Transformation

Border() публичный Метод

Add a solid border around the image.
public Border ( int width, string color ) : Transformation
width int
color string
Результат Transformation

Border() публичный Метод

Add a solid border around the image. The value has a CSS-like format: width_style_color.
public Border ( string value ) : Transformation
value string
Результат Transformation

Chain() публичный Метод

public Chain ( ) : Transformation
Результат Transformation

Clone() публичный Метод

public Clone ( ) : Transformation
Результат Transformation

Color() публичный Метод

Defines the color to use for various effects.
public Color ( string value ) : Transformation
value string
Результат Transformation

ColorSpace() публичный Метод

public ColorSpace ( string value ) : Transformation
value string
Результат Transformation

Crop() публичный Метод

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
Результат Transformation

DefaultImage() публичный Метод

public DefaultImage ( string value ) : Transformation
value string
Результат Transformation

Delay() публичный Метод

public Delay ( object value ) : Transformation
value object
Результат Transformation

Density() публичный Метод

Control the density to use while converting a PDF document to images. (range: 50-300, default: 150).
public Density ( object value ) : Transformation
value object
Результат Transformation

Dpr() публичный Метод

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
Результат Transformation

Effect() публичный Метод

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
Результат Transformation

Effect() публичный Метод

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.
Результат Transformation

EndIf() публичный Метод

public EndIf ( ) : Transformation
Результат Transformation

FetchFormat() публичный Метод

public FetchFormat ( string value ) : Transformation
value string
Результат Transformation

Flags() публичный Метод

public Flags ( ) : Transformation
Результат Transformation

Generate() публичный Метод

public Generate ( ) : string
Результат string

GenerateThis() публичный Метод

public GenerateThis ( ) : string
Результат string

Gravity() публичный Метод

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
Результат Transformation

Height() публичный Метод

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
Результат Transformation

IfCondition() публичный Метод

Start defining a condition, which will be completed with a call Condition.Then()
public IfCondition ( ) : Condition
Результат Condition

IfCondition() публичный Метод

Define a conditional transformation defined by the condition string.
public IfCondition ( string condition ) : Transformation
condition string A condition string.
Результат Transformation

IfElse() публичный Метод

public IfElse ( ) : Transformation
Результат Transformation

Named() публичный Метод

public Named ( ) : Transformation
Результат Transformation

Opacity() публичный Метод

Manipulate image opacity in order to make the image semi-transparent.
public Opacity ( int value ) : Transformation
value int
Результат Transformation

Overlay() публичный Метод

public Overlay ( BaseLayer value ) : Transformation
value BaseLayer
Результат Transformation

Overlay() публичный Метод

public Overlay ( string value ) : Transformation
value string
Результат Transformation

Page() публичный Метод

Given a multi-page PDF document, generate an image of a single page using the given index.
public Page ( object value ) : Transformation
value object
Результат Transformation

Prefix() публичный Метод

public Prefix ( string value ) : Transformation
value string
Результат Transformation

Quality() публичный Метод

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
Результат Transformation

Radius() публичный Метод

public Radius ( object value ) : Transformation
value object
Результат Transformation

RawTransformation() публичный Метод

public RawTransformation ( string value ) : Transformation
value string
Результат Transformation

ResponsiveWidth() публичный Метод

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
Результат Transformation

SetHtmlHeight() публичный Метод

public SetHtmlHeight ( object value ) : Transformation
value object
Результат Transformation

SetHtmlWidth() публичный Метод

public SetHtmlWidth ( object value ) : Transformation
value object
Результат Transformation

ToString() публичный Метод

public ToString ( ) : string
Результат string

Transformation() публичный Метод

Creates empty transformation object.
public Transformation ( ) : System
Результат System

Transformation() публичный Метод

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.
Результат System

Transformation() публичный Метод

Creates transformation object chained with other transformations.
public Transformation ( List transforms ) : System
transforms List
Результат System

Underlay() публичный Метод

public Underlay ( BaseLayer value ) : Transformation
value BaseLayer
Результат Transformation

Underlay() публичный Метод

public Underlay ( string value ) : Transformation
value string
Результат Transformation

Width() публичный Метод

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
Результат Transformation

X() публичный Метод

Horizontal position for custom-coordinates based cropping and overlay placement.
public X ( object value ) : Transformation
value object
Результат Transformation

Y() публичный Метод

Vertical position for custom-coordinates based cropping and overlay placement.
public Y ( object value ) : Transformation
value object
Результат Transformation

Zoom() публичный Метод

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
Результат Transformation

Zoom() публичный Метод

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
Результат Transformation

Zoom() публичный Метод

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
Результат Transformation

Zoom() публичный Метод

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
Результат Transformation

Описание свойств

m_htmlHeight защищенное свойство

protected string m_htmlHeight
Результат string

m_htmlWidth защищенное свойство

protected string m_htmlWidth
Результат string

m_nestedTransforms защищенное свойство

protected List m_nestedTransforms
Результат List

m_transformParams защищенное свойство

protected Dictionary m_transformParams
Результат object>.Dictionary