This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, June 29, 2006 6:59:27 PM(UTC)
Groups: Registered
Posts: 3
I am having problems performing the above. I am using a class that is used in "MainDemo" which does save a file but it only saves the current image in a viewer. The following is the code:
Private
_saver As ImageFileSaver = New ImageFileSaver
Dim saveImage As Leadtools.IRasterImage = Me.rivImageCopy.Image
If saveImage.PageCount = 0 Then
Exit Sub
End If
_saver.Save(
Me, objCodecs, saveImage)
When I debug the page count is 2 but only 1 image is saved. The class from MainDemo does do something with pagemode
First is this the correct thing to do or what?
Thanks
#2
Posted
:
Monday, July 3, 2006 12:13:42 PM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Dan,
It might be better to create a small test project and use the LEADTOOLS methods in it than to try to understand the whole main demo before you become familiar with the toolkit.
The RasterImage class can contain multiple images (pages). If you want to save more than one, you can use the following overload of the RasterCodecs.Save method:
Sub Save( _
ByVal image As IRasterImage, _
ByVal fileName As String, _
ByVal format As RasterImageFormat, _
ByVal bitsPerPixel As Integer, _
ByVal firstPage As Integer, _
ByVal lastPage As Integer, _
ByVal firstSavePageNumber As Integer, _
ByVal pageMode As CodecsSavePageMode _
)
The last 4 parameters of this method determine which pages are saved exactly and where they are placed in the output file. The LEADTOOLS .NET help file contains explanation and a code sample.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.