ColorType.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

プロパティ値

DoubleValue を返します。

属性

注釈

ECMA 国際 標準 ECMA-376 の次の情報は、このクラスを操作するときに役立ちます。

色に適用される濃淡の値を指定します。

が指定されている場合 tint は、色の RGB 値に適用され、適用される最終的な色が決定されます。

値は tint 、-1.0 から double として格納されます。 1.0。-1.0 は 100% 暗くなり、1.0 は 100% 明るさを意味します。 また、0.0 は変更がないことを意味します。

RGB 値の読み込み時に、HLS 値が (0.) である HLS に変換されます。HLSMAX)。 HLSMAX は現在 255 です。

色に濃淡を適用する方法の例を次に示します。

(濃淡 < 0) の場合

Lum' = Lum * (1.0 + 濃淡)

たとえば、Lum = 200 です。tint = -0.5;50% 暗くする

Lum' = 200 * (0.5) => 100

たとえば、Lum = 200 です。tint = -1.0;100%暗くする(黒にする)

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

(濃淡 > 0) の場合

Lum' = Lum * (1.0 − tint) + (HLSMAX – HLSMAX * (1.0 − tint))

たとえば、Lum = 100 です。tint = 0.75;75% を明るくする

Lum' = 100 * (1 - 0.75) + (HLSMAX – HLSMAX * (1 - 0.75))

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

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

たとえば、Lum = 100 です。tint = 1.0;100%軽くする(白にする)

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

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

= 0 + (255 – 0) = 255

この属性に使用できる値は、XML スキーマ double データ型によって定義されます。

適用対象