?
Solved

JPEG

Posted on 1998-12-12
6
Medium Priority
?
271 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 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