Beispiel #1
0
        /// <summary>
        /// Get a graphic brush
        /// </summary>
        public GraphicBrush GetBrush(EpsRect boundingBox)
        {
            var color = ColorSpaceConverter.ConvertCmykToRgb(values[0], values[1], values[2], values[3]);

            return(new GraphicSolidColorBrush {
                Color = color
            });
        }
Beispiel #2
0
        /// <summary>
        /// Get a graphic brush
        /// </summary>
        public GraphicBrush GetBrush(EpsRect boundingBox)
        {
            var grayByte = (byte)(int)Math.Round(gray * 255.0);
            var color    = Color.FromArgb((byte)255, grayByte, grayByte, grayByte);

            return(new GraphicSolidColorBrush {
                Color = color
            });
        }
Beispiel #3
0
 /// <summary>
 /// Get a graphic brush
 /// </summary>
 public GraphicBrush GetBrush(EpsRect boundingBox)
 {
     return(new GraphicSolidColorBrush {
         Color = color
     });
 }
Beispiel #4
0
 /// <summary>
 /// Get a graphic brush
 /// </summary>
 public GraphicBrush GetBrush(EpsRect boundingBox)
 {
     return(new GraphicSolidColorBrush {
         Color = RGBDeviceColorSpace.GetColorX(values)
     });
 }
 /// <summary>
 /// Get a graphic brush
 /// </summary>
 public GraphicBrush GetBrush(EpsRect boundingBox)
 {
     return(pattern.GetBrush(matrix, boundingBox));
 }
 /// <summary>
 /// Get a graphic brush
 /// </summary>
 public GraphicBrush GetBrush(EpsRect boundingBox)
 {
     return(brushDescriptor.GetBrush(boundingBox));
 }