Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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;
     }
 }