Esempio n. 1
0
        internal override void WriteColorSpaceForNotStroking(MemoryStream stream, Resources resources)
        {
            _name = resources.AddResources(ResourceType.Pattern, _streamDict);
            PDFArray colorspace = new PDFArray();

            colorspace.AddItem(new PDFName(Name));
            colorspace.AddItem(new PDFName(_color.Colorspace.Name));
            string            name      = resources.AddResources(ResourceType.ColorSpace, colorspace);
            IPDFPageOperation operation = new ColorSpaceForNonStroking(name);

            operation.WriteBytes(stream);
            operation = new ColorForNonStrokingEx(_color.ToArray(), _name);
            operation.WriteBytes(stream);
        }
Esempio n. 2
0
 internal override float[] ToArray()
 {
     return(_color.ToArray());
 }