Picturebox97

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lgeastwood@gmail.com

    #1

    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..?

  • Stephen Lebans

    #2
    Re: Picturebox97

    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:

    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

    Access Code, Tips and Tricks
    Please respond only to the newsgroups so everyone can benefit.



    <lgeastwood@gma il.comwrote in message
    news:1183555534 .264699.105240@ q75g2000hsh.goo glegroups.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..?
    >

    Comment

    Working...