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
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.
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
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
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
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
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
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
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