mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-21 04:17:57 +08:00
add support for alternative colorspace in separation colorspaces #89
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
namespace UglyToad.PdfPig.Tests.Graphics
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using Content;
|
||||
using PdfPig.Geometry;
|
||||
using PdfPig.Graphics;
|
||||
using PdfPig.IO;
|
||||
using PdfPig.Tokens;
|
||||
using PdfPig.Core;
|
||||
using PdfPig.Fonts;
|
||||
using Tokens;
|
||||
|
||||
internal class TestOperationContext : IOperationContext
|
||||
{
|
||||
@@ -29,7 +32,7 @@
|
||||
{
|
||||
StateStack.Push(new CurrentGraphicsState());
|
||||
CurrentPath = new PdfPath();
|
||||
ColorSpaceContext = new ColorSpaceContext(GetCurrentState);
|
||||
ColorSpaceContext = new ColorSpaceContext(GetCurrentState, new ResourceStore(new TestPdfTokenScanner(), new TestFontFactory()));
|
||||
}
|
||||
|
||||
public CurrentGraphicsState GetCurrentState()
|
||||
@@ -89,5 +92,13 @@
|
||||
public void EndInlineImage(IReadOnlyList<byte> bytes)
|
||||
{
|
||||
}
|
||||
|
||||
private class TestFontFactory : IFontFactory
|
||||
{
|
||||
public IFont Get(DictionaryToken dictionary, bool isLenientParsing)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user