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

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

2011-04-20 Thread Francisco José Reyes Peralta
ption. Not enough memory! Date: Tue, 19 Apr 2011 16:10:27 +0200 Subject: Re: [gdal-dev] Problem with GDALDatasetRasterIO.cs and ECW files From: szeker...@gmail.com To: gistd...@hotmail.es CC: gdal-dev@lists.osgeo.org Not sure what is the actual value of 'pixelFormat__1' in your program.

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

2011-04-19 Thread Francisco José Reyes Peralta
dataType__2, numChannels, bands, pixelSpace, strideBMD, _ 1)Finallybitmap.UnlockBits(bitmapData)End Try bmp = bitmap End Sub Thanks in advanced. Francisco J. Date: Tue, 19 Apr 2011 16:10:27 +0200 Subject: Re: [gdal-dev] Problem with GDALDatas

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

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

2011-04-19 Thread 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 DataType Dim pixelSpace As Integer If isIndexed Then pixelFormat = PixelFormat.For

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

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

2011-04-19 Thread 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. I'm trying to load an ECW image into a BitMap. Anybody can help