/[gr2lib]/trunk/gr2lib/core/typedefs/granny_pixel_layouts.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/typedefs/granny_pixel_layouts.cs

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

revision 187 by william, Sat Jul 24 04:16:43 2010 UTC revision 189 by william, Sat Jul 24 04:52:20 2010 UTC
# Line 355  namespace gr2lib.core.typedefs Line 355  namespace gr2lib.core.typedefs
355              #region Get GrannyABGR8888PixelFormat Layout              #region Get GrannyABGR8888PixelFormat Layout
356              get              get
357              {              {
358                  Layout _tmp_layout = granny_pixel_layouts.GrannyARGB8888PixelFormat;                  Layout _tmp_layout = granny_pixel_layouts.GrannyARGB8888PixelFormat;              
   
359                  unsafe                  unsafe
360                  {                  {
361                      IntPtr layoutPTR = (IntPtr)_tmp_layout.BytesPerPixel;                      GCHandle layoutHandle = GCHandle.Alloc(_tmp_layout.BytesPerPixel, GCHandleType.Pinned);                    
362                      _tmp_layout.NativePointer = layoutPTR;                      _tmp_layout.NativePointer = layoutHandle.AddrOfPinnedObject();
363                        layoutHandle.Free();
364                  }                              }            
   
365                  int R = _tmp_layout.ShiftForComponent[1];                  int R = _tmp_layout.ShiftForComponent[1];
366                  int B = _tmp_layout.ShiftForComponent[3];                  int B = _tmp_layout.ShiftForComponent[3];
367    

Legend:
Removed from v.187  
changed lines
  Added in v.189

  ViewVC Help
Powered by ViewVC 1.1.22