# Linear Access to the image data

**URL:** <https://forum.commonvisionblox.com/t/linear-access-to-the-image-data/303>\
**Category:** .Net API\
**Created:** [December 19, 2017, 3:20pm UTC](https://forum.commonvisionblox.com/t/linear-access-to-the-image-data/303 "2017-12-19T15:20:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![andrea.annovi](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@andrea.annovi](https://forum.commonvisionblox.com/u/andrea.annovi)\
**Post date:** [December 19, 2017, 3:20pm UTC](https://forum.commonvisionblox.com/t/linear-access-to-the-image-data/303/1 "2017-12-19T15:20:55Z")

</div>

I am acquiring data from a Camera and following the tutorial provided: [Getting Started with CVB.Net](https://forum.commonvisionblox.com/t/getting-started-with-cvb-net/246/3), it is trivial.

```auto
var device = LoadCameraDriver();
device.Stream.RingBuffer.ChangeCount(NUM_DRIVER_BUFFERS, DeviceUpdateMode.UpdateDeviceImage);
Stream stream = device.Stream;
stream .RingBuffer.LockMode = RingBufferLockMode.On;

stream .Start();
using (StreamImage image = await stream.WaitAsync())
                    {
                        Process(image);
                    }
stream.stop()

```

However after acquiring the image, I would like to process the image and to access to the image data linearly.

In my previous implementation with the C-style AI I used the method:

```auto
cvbbool_t GetLinearAccess ( IMG Img,  
  cvbdim_t Plane,  
  void ** ppBaseAddress,  
  intptr_t * pXInc,  
  intptr_t * pYInc  
 ) 

```

I read the .Net API documentation but I couldn’t find a similar function for this purpose.

---

_[View the full topic](https://forum.commonvisionblox.com/t/linear-access-to-the-image-data/303)._
