Page 1 of 1

Re: NVIEWLIB.dll

Posted: Thu Nov 21, 2002 10:20 pm
by BackupUser
Code updated For 5.20+

Restored from previous forum. Originally posted by LiNuX.

Re:
This procedure loads many different image formats
by using the free NVIEWLIB.DLL available here:
http://www.programmersheaven.com/file.asp?FileID=2045

Check the Quality of the resized Image=?????

Code: Select all

OpenLibrary(0,"NVIEWLIB.dll")
AddrImage = CallFunction(0,"NViewLibLoad",@"test.jpg",0)
CreateImage(0,640,480)
StartDrawing(ImageOutput(0))
DrawImage(AddrImage,0,0)
StopDrawing()
ResizeImage(0,120,91)
SaveImage(0,"temp.bmp")
AddrImage = CallFunction(0,"NViewLibLoad",@"temp.bmp",0)
AddrImage = CallFunction(0,"NViewLibSaveAsJPG",100,@"hm.jpg")
CloseLibrary(0)
End
JO ech sin deen vun Nondikass.lu :)

Posted: Thu Nov 21, 2002 10:49 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> Check the Quality of the resized Image=?????

The HM.JPG file is the same quality as TEMP.BMP, so it's either the
ResizeImage command or SaveImage command that's causing the problem.

I know for a fact that SaveImage has been fixed by Fred for v3.50 due
to a screen depth bug when saving, so maybe SaveImage is the culprit...

Posted: Fri Nov 22, 2002 7:44 am
by BackupUser
Restored from previous forum. Originally posted by LiNuX.

HM, ok Thx :)

But i want to create a Thumbnail-Prog ....


JO ech sin deen vun Nondikass.lu :)