Resize bitmap at runtime

B

bhammer

My mdb has paths to a few thousand jpgs in one big folder. I have no trouble
viewing and zooming the jpgs in my varous input forms and zoom forms.

My reports have four images per page (image control is about 2in x 3in) with
sometimes 200 pages--too much to process with full sized jpgs of 1200 x 1600,
so I found Steven Lebans' CreateBitmapFile function which works great to
convert each jpg into a bitmap for the report.

Is there a similar code I can add-on that will downsize the bmp so it fits
into the smaller 2in x 3in image control? The problem I have is that with
Image's Size Mode property set to Zoom, the on-screen appearance of the
shrunken bmps is distorted similar to 256 colors. It prints ok, but looks
like hell on screen. Clip and stretch do not display the entire photo and are
not an option.

So I want to convert and resize at runtime, without actually saving each bmp
(I only need them for a given report). How?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top