title: How to use CImg functions with pixel data?
body: <p>I am using Visual Studio and looking to find a useful image processing library that will take care of basic image processing functions such as rotation so that I don't have to keep coding them manually. I came across CImg and it supports this, as well as many other useful functions, along with interpolation.</p>
  
  <p>However, all the examples I've seen show CImg being used by loading and using full images. I want to work with pixel data. So my loops are the typical:</p>
  
  <pre><code>for (x=0;x&lt;width; x++)
  for (y=0;y&lt;height; y++)
  </code></pre>
  
  <p>I want to perform bilinear or bicubic rotation in this instance and I see CImg supports this. It provides a rotate() and get_rotate function, among others.</p>
  
  <p>I can't find any examples online that show how to use this with pixel data. Ideally, I could simply pass it the pixel color, x, y, and interpolation method, and have it return the result. </p>
  
  <p>Could anyone provide any helpful suggestions? If CImg is not the right library for this type of this, could anyone recommend a simple, light-weight, easy-to-use one?</p>
  
  <p>Thank you!</p>