AHA! Now I understand your concern. Here is another snippet from the
documentation that should help you:
--------------Excerpt Begin----------------
The SaveAs method saves the image using the name specified in the Image
parameter. If the
image document already exists, it is overwritten.
Upon successful completion of the SaveAs method, the image display window
continues to
display the original image; the Image property value remains unchanged.
Continuing to
display the original image ensures that the image on display is the same as
the image
specified in the Image property. For example, assume the currently displayed
image is
payroll.tif and the value of the Image property is also payroll.tif. When
the SaveAs
method is invoked with its Image parameter set to payroll98.tif, the image
is saved as
payroll98.tif. The image display window continues to display payroll.tif,
and the Image
property value remains unchanged at payroll.tif.
---------------Excerpt End
The confusion is the use of the words "Image property" to mean two things.
The image property of your imgedit object will remain the original tiff file
you opened. The image property of the SaveAs is the name that you wish to
apply to the saved page. So, your code would open file.tif. To do that you
set the image property of the imgedit control to file.tif and use the
display method. You are at page 1. You do a saveas using file1.jpg in the
command line in the first position to indicate the image property of the
SaveAs. The control DOES NOT CHANGE THE DISPLAYED IMAGE to the jpg. It is
still using your multi-page tiff. Your code would then move to page 2, and
use the saveas to save page 2 as file2.jpg. You can use a loop using the
pagecount property. And you can increment your saveas image property by
appending the page property (holding the currently viewed page number) to
the original file prefix.
Hope this helps.
-----Original Message-----
From: Sudhir [mailto:skwrox@y...]
Sent: Tuesday, December 25, 2001 8:53 PM
To: professional vb
Subject: [pro_vb] Re: Tiff 2 Giff - resend
---
Need a present for your favorite programmer?
E-Documents from Amazon.com at http://p2p.wrox.com/edocs.asp
---
Paul,
I think I didn't explain the problem correctly.
Each of my TIFF files is made up of several pages. The
ImgEdit displays one page at a time, and the SaveAs
command saves only the page that's currently being
displayed into a new file (when saved as BMP/JPG).
So I'll need to run the SaveAs command on each page of
the selected tiff file, and that will create a set of
BMP/JPG files for that TIFF file.
Would there be any other option?
Thanks,
Sudhir
--- Paul Engel <pengel@s...> wrote:
> ---
> Need a present for your favorite programmer?
> E-Documents from Amazon.com at
> http://p2p.wrox.com/edocs.asp
> ---
> I don't agree. You have the opportunity to give the
> path and name of the
> file (not just the page) that you want to use. So,
> if all your TIFFs are in
> one directory, simply extract the path, up to the
> .tif, and use it & ".jpg"
> in your saveas name.
>
> -----Original Message-----
> From: Sudhir [mailto:skwrox@y...]
> Sent: Tuesday, December 25, 2001 4:28 PM
> To: professional vb
> Subject: [pro_vb] Re: Tiff 2 Giff - resend
>
>
> ---
> Need a present for your favorite programmer?
> E-Documents from Amazon.com at
> http://p2p.wrox.com/edocs.asp
> ---
> Thanks, Paul. All the info is certainly very useful.
>
> What I am particularly worried about is that the
> "page
> currently being displayed is saved to the new file."
>
> Looks like I'll have to create a directory for each
> tiff, and save each page as a separate jpg file into
> it.
>
> Could anyone suggest anything better?
>
> Sudhir
>
>
> --- Paul Engel <pengel@s...> wrote:
> > ---
> > Need a present for your favorite programmer?
> > E-Documents from Amazon.com at
> > http://p2p.wrox.com/edocs.asp
> > ---
> > This is wierd. I sent this as a reply yesterday
> > morning and it got rejected.
> > Sorry for the delay. Looks like you got your
> > question answered...but here is
> > my input in case others are interested in the
> > details...
> >
> > I have the documentation for the Wang/Kodak
> > controls. I will paste a bit of
> > documentation here. First, the supported
> filetypes:
> > ------------------Excerpt-----------------------
> > FileType Settings
> > The following list shows the valid FileType
> > settings:
> > Displayed file types of PCX, DCX, JPG, XIF, GIF,
> or
> > WIFF must be saved using
> > a FileType
> > setting of 1 (TIFF), 2 (AWD), or 3 (BMP).
> > If a multipage image file (AWD, DCX, TIFF, WIFF,
> or
> > XIF) is saved as a BMP
> > file, only the
> > page currently being displayed is saved to the new
> > file.
> > A file with a .JFX extension is also a TIFF file
> > type.
> > GIF and WIFF are available with Imaging for
> Windows
> > Professional Edition
> > V1.0, V1.1,
> > and V2.0; and Imaging for Windows 98.
> > Constant Setting Description
> > wiFileTypeTIFF 1 TIFF
> > wiFileTypeAWD 2 AWD
> > wiFileTypeBMP 3 BMP
> > wiFileTypePCX 4 PCX
> > wiFileTypeDCX 5 DCX
> > wiFileTypeJPG 6 JPG
> > wiFileTypeXIF 7 XIF
> > wiFileTypeGIF 8 GIF
> > wiFileTypeWIFF 9 WIFF
> > Note: AWD is not available with Imaging for
> Windows
> > NT 4.0.
> > ---------------End
> > Excerpt---------------------------
> >
> > This makes it look like GIF is supported...but I
> > think it is for opening,
> > not SaveAs.
> > Note the references to Imaging Professional and
> > Imaging for Win98. The
> > Professional version
> > is for purchase only. The standard Imaging for
> > Win9x/NT only supports
> > certain features with
> > certain versions of Windows.
> >
> > Next is the SaveAs doc. Again, it looks like you
> > CAN'T SaveAs GIF
> >
> > ------------------Excerpt-----------------------
> > Save Method
> > Description Saves the displayed image (page) to
> the
> > original path and file.
> > Available With
> > Applies To Image Edit control.
> > V Imaging for Windows Professional Edition V1.0,
> > V1.1, and V2.0
> > V Imaging for Windows 95 and 98
> > V Imaging for Windows NT 4.0
> > Usage object.Save [ SaveAtZoom]
> > Arguments The Save method has the following
> > argument:
> > Returns None.
> > Remarks The Display method must be invoked prior
> to
> > calling this method.
> > For the TIFF file type, annotations are saved as
> > annotation data. For all
> > other file types,
> > annotations are lost unless the BurnInAnnotations
> > method is invoked prior to
> > calling the
> > Save method. The BurnInAnnotations method burns
> > annotations onto an image,
> > causing
> > them to be permanently incorporated into the
> image.
> > The Save method saves the image to the same file
> > from which it was opened.
> > The saved
> > image remains in the display window at its
> original
> > resolution.
> > If the SaveAtZoom parameter is not specified, the
> > image is saved using the
> > original zoom
> > scale percentage value.
> > Invoking the Save method sets the ImageModified
> > property to False.
> > See Also BurnInAnnotations method, Close event,
> > Display method, Image
> > property, ImageModified
> > property, SaveAs method, SavePage method, Zoom
> > property (Image Edit).
> > ---------------End
> > Excerpt---------------------------
> >
> > Sorry. BTW...I just found the following
> > confirmation...GIF is Read Only:
> >
> > Multipage Support By File Type
> > File
> > Type
> > Supports Multiple
> > Pages?
> > Read/Write
> > Status
> > AWD a Yes Read/Write
> > BMP No Read/Write
> > DCX Yes Read Only
> > GIF No Read Only
> > JPG No Read Only
> > PCX No Read Only
> > TIFF Yes Read/Write
> > WIFF Yes Read Only
> >
> > Paul
> >
> >
> >
> > Regards,
> > Paul
> >
> >
<><><><><><><><><><><><><><><><><
><><><>
> > Source Imaging, LLC.
> > Paul Engel, President
> > Certified Document Imaging Architech (CDIA)
> > Summation Certified Trainer (SCT)
> > pengel@s...
> > Voice: xxx-xxx-xxxx
> > Fax: xxx-xxx-xxxx
> > www.source-imaging.com
> >
<><><><><><><><><><><><><><><><><
><><><>
> >
> >
> >
> >
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com