Solved

JPEG

Posted on 1998-12-12
6
266 Views
Last Modified: 2013-11-19
Can someone give me some code to load a JPEG from a resource file and display it in vb (and of course how to store it in there).  Can't save it as a bitmap and loading it as a custom resource doesn't seem to work either.
0
Comment
Question by:Aikema
6 Comments
 
LVL 1

Expert Comment

by:Vingamel
ID: 1449689
You might just want to convert the BMP files to JPG first.  Try this program at this site: http://www.fcoder.com/ftp/Converter.zip 
It works great at converting graphics to different formats.  Let me know how it works, or if I have not helped you.  --Vingamel
0
 
LVL 1

Author Comment

by:Aikema
ID: 1449690
The size after the conversion would be WAAYYYYYYYYY too big.  Basically I want to keep the file size small otherwise I would have used bmps from the start
0
 
LVL 1

Author Comment

by:Aikema
ID: 1449691
what I'm thinking of is storing it in a resource file as a custom resource.. pull the data out of there and display it.
0
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 1

Expert Comment

by:rondeauj
ID: 1449692
object.picture = loadpicture(source)

when you are ready to save this picture and any changes use

savepicture object.picture,filename 'will use the same format you started with

savepicture object.image,filename 'will convert to bmp



0
 
LVL 1

Author Comment

by:Aikema
ID: 1449693
...from a resource file
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1449694
This sample shows you how to show a file from the resource

Take a look at animate.zip

http://www.nagarsoft.com/uk/vb_code.htm

This are the source for playing an AVI file using API's from within a resource
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question