Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/UglyToad.PdfPig/Graphics/Colors/Shading.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace UglyToad.PdfPig.Graphics.Colors
{
using System;
using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Functions;
using UglyToad.PdfPig.Tokens;
Expand Down Expand Up @@ -329,6 +330,11 @@ public sealed class FreeFormGouraudShading : Shading
/// </summary>
public override PdfFunction[]? Functions { get; }

/// <summary>
/// The decoded stream data containing descriptive data characterizing the shading's gradient fill.
/// </summary>
public Memory<byte> Data { get; }

/// <summary>
/// Create a new <see cref="FreeFormGouraudShading"/>.
/// </summary>
Expand All @@ -342,6 +348,7 @@ public FreeFormGouraudShading(bool antiAlias, StreamToken shadingStream,
BitsPerFlag = bitsPerFlag;
Decode = decode;
Functions = functions;
Data = shadingStream.Data;
}
}

Expand Down Expand Up @@ -392,6 +399,11 @@ public sealed class LatticeFormGouraudShading : Shading
/// </summary>
public override PdfFunction[]? Functions { get; }

/// <summary>
/// The decoded stream data containing descriptive data characterizing the shading's gradient fill.
/// </summary>
public Memory<byte> Data { get; }

/// <summary>
/// Create a new <see cref="LatticeFormGouraudShading"/>.
/// </summary>
Expand All @@ -405,6 +417,7 @@ public LatticeFormGouraudShading(bool antiAlias, StreamToken shadingStream,
VerticesPerRow = verticesPerRow;
Decode = decode;
Functions = functions;
Data = shadingStream.Data;
}
}

Expand Down Expand Up @@ -457,6 +470,11 @@ public class CoonsPatchMeshesShading : Shading
/// </summary>
public override PdfFunction[]? Functions { get; }

/// <summary>
/// The decoded stream data containing descriptive data characterizing the shading's gradient fill.
/// </summary>
public Memory<byte> Data { get; }

/// <summary>
/// Create a new <see cref="CoonsPatchMeshesShading"/>.
/// </summary>
Expand All @@ -470,6 +488,7 @@ public CoonsPatchMeshesShading(bool antiAlias, StreamToken shadingStream,
BitsPerFlag = bitsPerFlag;
Decode = decode;
Functions = functions;
Data = shadingStream.Data;
}
}

Expand Down Expand Up @@ -522,6 +541,11 @@ public sealed class TensorProductPatchMeshesShading : Shading
/// </summary>
public override PdfFunction[]? Functions { get; }

/// <summary>
/// The decoded stream data containing descriptive data characterizing the shading's gradient fill.
/// </summary>
public Memory<byte> Data { get; }

/// <summary>
/// Create a new <see cref="TensorProductPatchMeshesShading"/>.
/// </summary>
Expand All @@ -535,6 +559,7 @@ public TensorProductPatchMeshesShading(bool antiAlias, StreamToken shadingStream
BitsPerFlag = bitsPerFlag;
Decode = decode;
Functions = functions;
Data = shadingStream.Data;
}
}

Expand Down
Loading