473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Picturebox97

I am using Stephen Lebans Picturebox97 (www.lebans.com) and use the
pb.SavetoFile function included.
The SavetoFile function saves my image as a bitmap file size 352 KB.
Potentially there will be several hundred images saved at a large and
undoable disk space cost.
I have also tried the SavetoFile function to save the image as a jpg
file but the file size is still 352 KB.
However if I open the Image file for editing with mspaint and save as
jpg the file size is reduced to 9 KB.
Does anyone know of a way to do this programatically?
Perhaps the SavetoFile function can be set to a different file save
size..?

Jul 4 '07 #1
1 1695
As is stated in the source code, that solution only saves to BMP files. You
can either use a third aprty app to mass convert your saved BMP images or
take a look here:
http://www.lebans.com/loadsavejpeg.htm
A97LoadSaveJpeg.zip contains a database demonstrating how to use the Intel
Jpeg library with Access. Jpeg files are stored in their original compressed
state within a Binary OLE avoiding the Ole object "bloat" issue. Here is the
A2K version: A2KLoadSaveJpeg.zip

A standard Image control is used to display the contents of the field
containing the Jpeg file. The Intel DLL is used to load the contents of the
field directly into memory bypassing the need to create a temporary disk
file.

The contents of the Image control, containing any supported source Image
format, can be saved to disk as a Jpeg file.

Very large Jpeg files that could not be loaded into the standard Access
Image control directly can now be loaded through the Intel Jpeg library.

Version 1.9

Fixed Sample Report. Added A2K version.

Version 1.2

Fixed File Dialogs. Added control to resize loaded Jpegs. Added sample
Report. Starting to clean up the code!

Version 1.1

Any Image file that can be loaded into the standard Image control can now be
saved to a disk Jpeg file. Version 1.0 was restricted to Bitmap files.

Version 1.0

Initial release.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.

<lg********@gmail.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
>I am using Stephen Lebans Picturebox97 (www.lebans.com) and use the
pb.SavetoFile function included.
The SavetoFile function saves my image as a bitmap file size 352 KB.
Potentially there will be several hundred images saved at a large and
undoable disk space cost.
I have also tried the SavetoFile function to save the image as a jpg
file but the file size is still 352 KB.
However if I open the Image file for editing with mspaint and save as
jpg the file size is reduced to 9 KB.
Does anyone know of a way to do this programatically?
Perhaps the SavetoFile function can be set to a different file save
size..?

Jul 4 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: lgeastwood | last post by:
I have tweaked the PictureBox97.mdb (Stephen Lebans <www.lebans.com>) code to nicely draw lines, rectangles and circles to the specs that I input. I'm at a loss though with trying to setup an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.