Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Efficient image resources (not bitmaps?)

Efficient image resources (not bitmaps?)

Efficient image resources (not bitmaps?)

The program I'm maintaining has a large collection of BMP-format resources. As such, the binary is rather large. VS2005 allows me to load GIFs and JPEGs when importing resources, but then it wants to call them custom resources.

Is it possible to use a more efficient file format (than uncompressed BMP) without requiring a lot of changes to the way I load the existing resources?

RE: Efficient image resources (not bitmaps?)

I don't have VS2005 at the moment.  You could try this.  It may work.

1) Convert a bmp to a jpg
2) Rename the jpg back to bmp
3) See if the system will pick it up

Paint seems to pick up anything and auto convert it.  Doesn't depend on the extension.  Maybe the resources are the same.  Try it and see.  It may work, it may not.

RE: Efficient image resources (not bitmaps?)

VS2005 doesn't like that. As far as I can tell, BITMAP resources can only be BMP files in proper bitmap format. However, BMP files can be RLE-compressed, which is not as efficient as GIF or JPG, but it helps a good bit. I tried that on my app and successfully trimmed off some excess size.

Photoshop can create RLE-compressed bitmaps.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close