Exemple #1
0
        /// <summary>
        /// Get a graphic brush
        /// </summary>
        public GraphicBrush GetBrush(PdfRect boundingBox, List <FunctionStop> softMask)
        {
            GraphicBrush brush;

            if (altColorSpaceDescriptor != null)
            {
                brush = altColorSpaceDescriptor.GetBrush(boundingBox, softMask);
            }
            else
            {
                byte gray  = 0xB0;
                var  color = Color.FromArgb((byte)255, gray, gray, gray);
                brush = new GraphicSolidColorBrush {
                    Color = color
                };
            }

            return(brush);
        }
 /// <summary>
 /// Get a graphic brush
 /// </summary>
 public GraphicBrush GetBrush(PdfRect boundingBox, List <FunctionStop> softMask)
 {
     return(new GraphicSolidColorBrush {
         Color = color
     });
 }
Exemple #3
0
 /// <summary>
 /// Get a graphic brush
 /// </summary>
 public GraphicBrush GetBrush(PdfRect boundingBox, List <FunctionStop> softMask)
 {
     return(pattern.GetBrush(matrix, boundingBox, alpha, softMask));
 }