title: vb net save bitmap to tiff CCITT4
body: <p>I've used the code in the question</p>
  
  <p><a href="https://stackoverflow.com/questions/2746103/what-would-be-a-good-true-black-and-white-colormatrix/34037395#34037395">What would be a good TRUE black and white colormatrix?</a></p>
  
  <p>and works fine.. but when I try to save in TIFF with CCITT4 compression, an error occour, invalid parameter value... If I use the LZW compression, it works fine.. I use the code:</p>
  
  <pre><code>Dim myImageCodecInfo As ImageCodecInfo
  myImageCodecInfo = GetEncoderInfo(ImageFormat.Tiff)
  
  Dim myEncoderParameters As New EncoderParameters(1)
  Dim myEncoderParameter As New EncoderParameter(System.Drawing.Imaging.Encoder.Compression, EncoderValue.CompressionCCITT4)
  myEncoderParameters.Param(0) = myEncoderParameter
  
  bmp.Save(path &amp; "\test.tif", myImageCodecInfo, myEncoderParameters)
  </code></pre>
  
  <p>Someone can help me? Thanks..</p>