how to convert bitmap image to CIELab image?
<blockquote>
  <p>Hello to stackoverflow members! This
  is my first post but I love reading
  the questions and answers on this
  forum!</p>
  
  <p>I'm using VS2008, CSharp, NET 3.5 and
  Windows XP Pro latest patches on this
  project.</p>
  
  <p>I am reading in a jpeg file to a
  bitmap image using CSharp in the
  following way: </p>

<pre><code>Bitmap bmp = new Bitmap("background.jpg");
Graphics g = Graphics.FromImage(bmp);
</code></pre>
  
  <p>I then write some text and logos on g
  using various DrawString and DrawImage
  commands. I then want to write this
  bitmap to a tiff file using the
  command:</p>

<pre><code>bmp.Save("final_artwork.tif", ImageFormat.Tiff);
</code></pre>
  
  <p>I don't know what the TIFF tags in the
  header of the final resultant TIFF
  file will be when you do bmp.Save as
  shown above?</p>
  
  <p>But what I want to produce is a TIFF
  image file with PHOTOMETRIC CIELab,
  BITSPERSAMPLE 8, SAMPLESPERPIXEL 3,
  FILLORDER MSB2LSB, ORIENTATION
  TOPLEFT, PLANARCONFIG CONTIG, and also
  uncompressed and singlestrip.</p>
  
  <p>Im fairly certain, at least I have not
  found anything about Microsoft API and
  CIELab, I can not convert the bitmap
  image to CIELab photometric and the
  other requirements using anything from
  the Microsoft API or .NET 3.5
  environment - someone please correct
  if I am wrong.</p>
  
  <p>I have used libtiff in a project in
  the past but just to write a tiff file
  where the tiff image in memory was
  already in CIELab format and all the
  other requirements as noted per above.
  Im not certain libtiff can convert
  from my CSharp bitmap image, which is
  probably RGB photometric, to CIELab, 8
  bps, and 3 spp?</p>
  
  <p>Maybe I can use OpenCVImage or Emgu CV
  or something similiar?</p>
  
  <p>So the main question is what is going
  to be the easiest way to get my final
  bitmap image as outlined above into a
  CIELab TIFF and also meeting the other
  requirements per above?</p>
  
  <p>Thanks for any suggestions and code
  fragments you can provide?</p>
  
  <p>Neal Davis</p>
</blockquote>
