Re: [gdal-dev] Problem with GDALDatasetRasterIO.cs and ECW files

2011-04-20 Thread Chaitanya kumar CH
kBits(New Rectangle(0, 0, > imageWidth, imageHeight), ImageLockMode.ReadWrite, pixelFormat__1) > > Try > Dim strideBMD As Integer = bitmapData.Stride > Dim buf As IntPtr = bitmapData.Scan0 > > ds.ReadRaster(xOff, yOff, width, height, bu

RE: [gdal-dev] Problem with GDALDatasetRasterIO.cs and ECW files

2011-04-19 Thread Francisco José Reyes Peralta
Sorry, tomorrow in the morning pass you the entire code and the value of pixelFormat__1 because the code is in my office. Thanks for your reply. Francisco J. Date: Tue, 19 Apr 2011 16:10:27 +0200 Subject: Re: [gdal-dev] Problem with GDALDatasetRasterIO.cs and ECW files From: szeker...@gmail.com

Re: [gdal-dev] Problem with GDALDatasetRasterIO.cs and ECW files

2011-04-19 Thread Tamas Szekeres
Not sure what is the actual value of 'pixelFormat__1' in your program. Best regards, Tamas 2011/4/19 Francisco José Reyes Peralta > The parameter is not valid is the error that I get. > > I use an adaptation of the source .cs code in VB.NET. > > Here is part of the code: > > > Dim pi

Re: [gdal-dev] Problem with GDALDatasetRasterIO.cs and ECW files

2011-04-19 Thread Chaitanya kumar CH
Francisco, Can you provide the whole file? 2011/4/19 Francisco José Reyes Peralta > The parameter is not valid is the error that I get. > > I use an adaptation of the source .cs code in VB.NET. > > Here is part of the code: > > > Dim pixelFormat As PixelFormat > > Dim dataType As

Re: [gdal-dev] Problem with GDALDatasetRasterIO.cs and ECW files

2011-04-19 Thread Tamas Szekeres
2011/4/19 Francisco José Reyes Peralta > Dear friends, I'm vieweing the *GDALDatasetRasterIO.cs* from the Csharp > samples of GDAL and I'm getting an error in the following line *Bitmap > bitmap = new Bitmap(imageWidth, imageHeight, pixelFormat);* In the * > pixelFormat* argument. > Hi, What i