public unsafe static void ForEach(this UnmanagedImage <TPixel> src, ActionOnPixel handler) { TPixel *start = (TPixel *)src.StartIntPtr; TPixel *end = start + src.Length; while (start != end) { handler(start); ++start; } }
public unsafe static void ForEach(this UnmanagedImage <TPixel> src, TPixel *start, uint length, ActionOnPixel handler) { TPixel *end = start + src.Length; while (start != end) { handler(start); ++start; } }
public static unsafe void ForEach(this UnmanagedImage<TPixel> src, TPixel* start, uint length, ActionOnPixel handler) { TPixel* end = start + src.Length; while (start != end) { handler(start); ++start; } }
public static unsafe void ForEach(this UnmanagedImage<TPixel> src, ActionOnPixel handler) { TPixel* start = (TPixel*)src.StartIntPtr; TPixel* end = start + src.Length; while (start != end) { handler(start); ++start; } }