|
-
Dec 30th, 2001, 04:19 AM
#1
Thread Starter
Member
Convet to GIF /JPG/TIFF
Hi all,
How do i save a bitmap as a GIF or a jpg?
Just like photo shop?
Regards,
LXS
-
Dec 30th, 2001, 07:50 AM
#2
Fanatic Member
A library for saving JPEG's and VB implemantation can be found at vbAccelerator.
You can search on the internet for libraries for saving to other file formats. Most of them are expensive. You can also create them yourself, but it's hard. See my other post for more info about that.
-
Dec 30th, 2001, 08:06 AM
#3
Thread Starter
Member
Thanks oetje,
I need to do it without Dlls or ocx ,in pure vb 6.0
any way?
Atlest it i can conver it into a 8-bit grey cale, i can reduce its size.
Bascically i want to reduce the size of games screenshot.
Tried stretchblt() but the scores are not visible.
Regards,
LXs
-
Dec 30th, 2001, 11:29 AM
#4
Monday Morning Lunatic
I wouldn't suggest trying to do it in pure VB.
It's very difficult to do things like this when you're in a pointerless language, since especially for formats like JPG you need to have explicit memory management.
I doubt anyone's ever bothered to implement it in VB, since it's better to do it in something like C. And also, the Intel JPEG library is good enough for most people.
What's so bad about using a DLL?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 30th, 2001, 12:04 PM
#5
Thread Starter
Member
hi,
nothing is wrong,
its just that the person for whom i am coding wants it in pure vb
Well i found some code
please see it
the code is slow for large bmp's and if an image is larger than picture box, it get clipped.
So can you suggest a way to make it better?
Regards,
LXS
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
|