Using gflSoften under VB5 works just fine if I only call it once. If I load another image and then call gflSoften again, I get a strange striped image returned, and the GflBitmap data isn't what I'd expect (see below)
I'm using "GflError = gflSoften(GflBitmap, GflPtrBitmap, 90)"
GflBitmap before gflSoften (or gflBlur) - FIRST call
Type 64
Origin 16
Width 1664
Height 2352
BytesPerLine 4992
LinePadding 4
BitsPerComponent 8
ComponentsPerPixel 3
BytesPerPixel 3
Xdpi 200
Ydpi 200
TransparentIndex-1
ColorUsed 0
ColorMap 0
Data 61603852
Comment 0
MetaData 0
GflBitmap after gflSoften (or gflBlur) - FIRST call, nothing changed in GflBitmap except data pointer.
Type 64
Origin 16
Width 1664
Height 2352
BytesPerLine 4992
LinePadding 4
BitsPerComponent 8
ComponentsPerPixel 0
BytesPerPixel 3
Xdpi 200
Ydpi 200
TransparentIndex-1
ColorUsed 0
ColorMap 0
Data 88342540
Comment 0
MetaData 0
GflBitmap before gflSoften (or gflBlur) - Second call (after loading a different bitmap)
Type 64
Origin 16
Width 1664
Height 2352
BytesPerLine 4992
LinePadding 4
BitsPerComponent 8
ComponentsPerPixel 3
BytesPerPixel 3
Xdpi 200
Ydpi 200
TransparentIndex-1
ColorUsed 0
ColorMap 0
Data 88342540
Comment 0
MetaData 0
GflBitmap after gflSoften (or gflBlur) - Second call, several parameters have now changed in GflBitmap, and image returned is corrupted.
Type 64
Origin 16
Width 1664
Height 2352
BytesPerLine 9984
LinePadding 4
BitsPerComponent 8
ComponentsPerPixel 0
BytesPerPixel 6
Xdpi 200
Ydpi 200
TransparentIndex-1
ColorUsed 0
ColorMap 0
Data 100139020
Comment 0
MetaData 0
Any ideas as to what's happening here ?
Regards, Nick
gflSoften problem
Moderators: helmut, XnTriq, xnview
-
- Author of XnView
- Posts: 45870
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: gflSoften problem
Send me a email, and i'll send the current beta of GFL to check.NickD wrote:Using gflSoften under VB5 works just fine if I only call it once. If I load another image and then call gflSoften again, I get a strange striped image returned, and the GflBitmap data isn't what I'd expect (see below)
I'm using "GflError = gflSoften(GflBitmap, GflPtrBitmap, 90)"
Any ideas as to what's happening here ?
Pierre.