Re: NVIEWLIB.dll

Share your advanced PureBasic knowledge/code with the community.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Re: NVIEWLIB.dll

Post 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 :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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 :)
Post Reply