How do I save an image as a JPEG?

Just starting out? Need help? Post your questions and find answers here.
TotalNewbie
New User
New User
Posts: 2
Joined: Tue Apr 29, 2003 6:07 am

How do I save an image as a JPEG?

Post by TotalNewbie »

Hello, Ive checked the F.A.Q. and searched this board but dont know how to save an image as a JPEG file. I think its too do with the UseJPEGImageDecoder command but Im not sure. Can somebody please give me an example? I would prefer not to use a dll as said in other messages here.......
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Code: Select all

UseJPEGImageEncoder()
SaveImage(0, "your.jpg", #PB_ImagePlugin_JPEG)
TotalNewbie
New User
New User
Posts: 2
Joined: Tue Apr 29, 2003 6:07 am

Post by TotalNewbie »

Thank you Fred. I dont need to use UseJPEGImageEncoder each time, do I?
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

TotalNewbie wrote:Thank you Fred. I dont need to use UseJPEGImageEncoder each time, do I?
no, only once in your program for initialization, if that's what you mean
Good programmers don't comment their code. It was hard to write, should be hard to read.
Post Reply