Compartir a través de


ColorType.Tint Propiedad

Definición

Tinte

Representa el atributo siguiente en el esquema: tint

[DocumentFormat.OpenXml.SchemaAttr(0, "tint")]
public DocumentFormat.OpenXml.DoubleValue Tint { get; set; }
public DocumentFormat.OpenXml.DoubleValue Tint { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "tint")]
public DocumentFormat.OpenXml.DoubleValue? Tint { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("tint")]
public DocumentFormat.OpenXml.DoubleValue? Tint { get; set; }
public DocumentFormat.OpenXml.DoubleValue? Tint { get; set; }
member this.Tint : DocumentFormat.OpenXml.DoubleValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "tint")>]
member this.Tint : DocumentFormat.OpenXml.DoubleValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("tint")>]
member this.Tint : DocumentFormat.OpenXml.DoubleValue with get, set
Public Property Tint As DoubleValue

Valor de propiedad

Devuelve DoubleValue.

Atributos

Comentarios

La siguiente información de ECMA International Standard ECMA-376 puede ser útil al trabajar con esta clase.

Especifica el valor de tono aplicado al color.

Si tint se proporciona, se aplica al valor RGB del color para determinar el color final aplicado.

El tint valor se almacena como un valor doble de −1.0 .. 1.0, donde −1.0 significa 100% oscurecer y 1.0 significa 100% claro. Además, 0.0 significa que no hay ningún cambio.

Al cargar el valor RGB, se convierte en HLS, donde los valores hls son (0). HLSMAX), donde HLSMAX es actualmente 255.

Estos son algunos ejemplos de cómo aplicar el tono al color:

If (tono < 0)

Lum' = Lum * (1,0 + tono)

Por ejemplo: Lum = 200; tint = −0.5; Oscurecer 50%

Lum' = 200 * (0,5) => 100

Por ejemplo: Lum = 200; tint = −1.0; Oscurecer 100% (hacer negro)

Lum' = 200 * (1.0 − 1.0) => 0

If (tono > 0)

Lum' = Lum * (1.0 − tono) + (HLSMAX – HLSMAX * (1.0 - tono))

Por ejemplo: Lum = 100; tint = 0,75; Aclaración del 75 %

Lum' = 100 * (1 − 0,75) + (HLSMAX – HLSMAX * (1 − 0,75))

= 100 * 0,25 + (255 – 255 * 0,25)

= 25 + (255 – 63) = 25 + 192 = 217

Por ejemplo: Lum = 100; tint = 1,0; Aclarar 100% (hacer blanco)

Lum' = 100 * (1 − 1) + (HLSMAX – HLSMAX * (1 − 1))

= 100 * 0 + (255 – 255 * 0)

= 0 + (255 – 0) = 255

El tipo de datos esquema double XML define los valores posibles para este atributo.

Se aplica a