You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Multipage TIFF Manipulation > TiffSwapPages Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.TiffSwapPages Method

Swaps two pages in an editable multipage tiff image.

C#
public GdPictureStatus TiffSwapPages(
    int ImageID, 
    int Page1, 
    int Page2
);
Visual Basic
Public Function TiffSwapPages(
    ByVal ImageID As Integer, 
    ByVal Page1 As Integer, 
    ByVal Page2 As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier. The editable multipage tiff image in which pages will be swapped.  
Page1 
The position of the first page to swap with the second. Must be a value from 1 to the current number of pages available in the multipage tiff image.  
Page2 
The position of the second page to swap with the first one. Must be a value from 1 to the current number of pages available in the multipage tiff image.  
Returns

A member of the GdPictureStatus enumeration.

This function can only be used with an editable multipage tiff image. 

To check if an image is an editable multipage tiff image you can use the TiffIsEditableMultiPage() function. 

To save modifications brought to the multipage tiff image you need to use the TiffSaveMultiPageToFile() function.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.