Esempio n. 1
0
 public FractalRenderer(ComplexPlane complexPlane, Size size)
 {
     ComplexPlane = complexPlane;
     Size         = size;
     horizontal   = new Range(0, Size.Width);
     vertical     = new Range(0, Size.Height);
     palette      = Enumerable.Range(0, 16).Select(i => Color.FromArgb(0, 0, 255 - i * 8)).Union(
         Enumerable.Range(0, 16).Select(i => Color.FromArgb(0, 255 - i * 8, 0))).Union(
         Enumerable.Range(0, 16).Select(i => Color.FromArgb(255 - i * 8, 0, 0))).ToArray();
 }
Esempio n. 2
0
 public static extern int imaqReplaceComplexPlane(IntPtr dest, IntPtr source, IntPtr newValues, ComplexPlane plane);
Esempio n. 3
0
 public static extern IntPtr imaqComplexPlaneToArray(IntPtr image, ComplexPlane plane, Rect rect, ref int rows, ref int columns);
Esempio n. 4
0
 public static extern int imaqExtractComplexPlane(IntPtr dest, IntPtr source, ComplexPlane plane);
Esempio n. 5
0
 public static extern int imaqArrayToComplexPlane(IntPtr dest, IntPtr source, ref float newPixels, ComplexPlane plane);