/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/MIPLevel.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coretypes/implementation/MIPLevel.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 87 by william, Fri Jul 16 23:35:21 2010 UTC revision 88 by william, Fri Jul 16 23:42:07 2010 UTC
# Line 1  Line 1 
1  ´╗┐using System;  ´╗┐//#define READ_PIXELS_FROM_MEMORY // when defined will enable reading the Pixels from the data in the pointer, else initialize to default pixel
2    using System;
3  using System.Collections.Generic;  using System.Collections.Generic;
4  using System.Text;  using System.Text;
5  using gr2lib.core.helpers;  using gr2lib.core.helpers;
# Line 51  namespace gr2lib.core.coretypes.implemen Line 52  namespace gr2lib.core.coretypes.implemen
52                            
53                  for (int i = 0; i < length; i++)                  for (int i = 0; i < length; i++)
54                  {                  {
55    #if READ_PIXELS_FROM_MEMORY
56                      managed.Pixels[i] = Pixel.ReadFromMemory(pixels[i]);                      managed.Pixels[i] = Pixel.ReadFromMemory(pixels[i]);
57    #else
58                        managed.Pixels[i] = default(Pixel);
59    #endif
60                  }                  }
61                  return managed;                  return managed;
62              }              }

Legend:
Removed from v.87  
changed lines
  Added in v.88

  ViewVC Help
Powered by ViewVC 1.1.22