Beispiel #1
0
 public OneColorProvider(FColor color)
 {
     Color = color;
 }
Beispiel #2
0
 /// <summary>
 /// Default constructor - Black color
 /// </summary>
 public OneColorProvider()
 {
     Color = FColor.Black;
 }
Beispiel #3
0
 /// <summary>
 /// Constructs a new OMR provider
 /// </summary>
 /// <param name="colStripe1">The color of the first grating stripe</param>
 /// <param name="colStripe2">The second color in the grating</param>
 /// <param name="stripeWidth">The width of the stripes in device coordinates</param>
 public OMRProvider(FColor colStripe1, FColor colStripe2, float stripeWidth)
 {
     ColorStripe1 = colStripe1;
     ColorStripe2 = colStripe2;
     StripeWidth  = stripeWidth;
 }
Beispiel #4
0
 /// <summary>
 /// Creates a new Y-Maze provider. The coordinates are intended to follow each other in clock-wise direction starting at the meeting point
 /// of bottom arm and left arm
 /// </summary>
 public YMazeProvider(IppiPoint_32f p1, IppiPoint_32f p2, IppiPoint_32f p3, IppiPoint_32f p4, IppiPoint_32f p5, IppiPoint_32f p6, IppiPoint_32f p7, IppiPoint_32f p8, IppiPoint_32f p9, FColor arm1, FColor arm2, FColor arm3)
 {
     _arm1     = new Quad(p1, p2, p3, p4, arm1);
     _arm2     = new Quad(p4, p5, p6, p7, arm2);
     _arm3     = new Quad(p7, p8, p9, p1, arm3);
     _vertex13 = new FColor((arm1.R + arm3.R) / 2, (arm1.G + arm3.G) / 2, (arm1.B + arm3.B) / 2);
     _vertex21 = new FColor((arm1.R + arm2.R) / 2, (arm1.G + arm2.G) / 2, (arm1.B + arm2.B) / 2);
     _vertex32 = new FColor((arm2.R + arm3.R) / 2, (arm2.G + arm3.G) / 2, (arm2.B + arm3.B) / 2);
 }
 /// <summary>
 /// Constructs a new linear gradient provider
 /// </summary>
 /// <param name="topleft">The topleft corner of the gradient rectangle</param>
 /// <param name="width">The width of the gradient rectangle</param>
 /// <param name="height">The height of the gradient rectangle</param>
 /// <param name="colStart">The starting color of the gradient</param>
 /// <param name="colEnd">The ending color of the gradient</param>
 public LinGradientProvider(IppiPoint_32f topleft, float width, float height, FColor colStart, FColor colEnd)
 {
     Topleft  = topleft;
     Width    = width;
     Height   = height;
     ColStart = colStart;
     ColEnd   = colEnd;
 }