<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<span class="Apple-tab-span" style="white-space:pre">Dear friends,

I'm vieweing the <b>GDALDatasetRasterIO.cs</b> from the Csharp samples of GDAL and I'm getting an error in the following line

<b>Bitmap bitmap = new Bitmap(imageWidth, imageHeight, pixelFormat);</b>

In the <b>pixelFormat</b> argument.

I'm trying to load an ECW image into a BitMap.

Anybody can help me about this error?

This line is related with the <b>pixelFormat = PixelFormat.Format24bppRgb; </b>line

Thanks in advanced.

Francisco J.</span>                                               </body>
</html>