Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

JPEG

Posted on 1998-12-12
6
Medium Priority
?
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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 100 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
In this tutorial viewers will learn how to create blended and gradiated shapes in Illustrator using the blend tool Draw two shapes, one of them in a different color: Select both and create a blend by going to Object > Blend > Make: Blends can also b…
It’s easy to embed any of your public Prezi presentations on your website or social network to share with others. Learn how simple it is in this tutorial.
Suggested Courses

610 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