|
-
Aug 4th, 2002, 03:53 PM
#1
Thread Starter
Frenzied Member
Save jpeg
how can I save the contents of a picture box into a jpeg
NXSupport - Your one-stop source for computer help
-
Aug 4th, 2002, 04:09 PM
#2
PowerPoster
Use a DLL to do it. http://haztek.d2g.com/files/bmp2jpg.zip
VB Code:
Private Declare Function BmpToJpeg Lib "Bmp2Jpeg.dll" (ByVal BmpFilename As String, ByVal JpegFilename As String, ByVal _
CompressQuality As Integer) As Integer
SavePicture Picture1.Picture, "C:\temp.938"
BmpToJpeg "C:\temp.938", "C:\thefile.jpg", 100 '100 = quality level
Kill "C:\temp.938"
Last edited by MidgetsBro; Aug 4th, 2002 at 04:12 PM.
<removed by admin>
-
Aug 4th, 2002, 04:35 PM
#3
Thread Starter
Frenzied Member
does 100 mean that its in the same condition as the file was when it was opened
NXSupport - Your one-stop source for computer help
-
Aug 4th, 2002, 04:45 PM
#4
PowerPoster
I think 100 is the highest quality jpeg you can get. It will make the biggest file size, but will still compress to jpeg. It may have a little bit of loss, but probably barely noticable, if at all.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|