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(); }
public static extern int imaqReplaceComplexPlane(IntPtr dest, IntPtr source, IntPtr newValues, ComplexPlane plane);
public static extern IntPtr imaqComplexPlaneToArray(IntPtr image, ComplexPlane plane, Rect rect, ref int rows, ref int columns);
public static extern int imaqExtractComplexPlane(IntPtr dest, IntPtr source, ComplexPlane plane);
public static extern int imaqArrayToComplexPlane(IntPtr dest, IntPtr source, ref float newPixels, ComplexPlane plane);