[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

JPEG

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
Aikema
Asked:
Aikema
1 Solution
 
VingamelCommented:
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
 
AikemaAuthor Commented:
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
 
AikemaAuthor Commented:
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
rondeaujCommented:
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
 
AikemaAuthor Commented:
...from a resource file
0
 
MirkwoodCommented:
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

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now