FlipImage
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This method vertically flips the image with the specified index.

Syntax

HRESULT FlipImage (
LONG imageIndex
)
Parameters
imageIndex
Index of the existing image to flip

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

The image index can be retrieved from any image loading method, such as AddImageFromFile.

Equivalent in new interface: IPDFDocument4::TransformImage.

Example

How to Vertically Flip an Image

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
j := PDF.AddImageFromFile('picture.jpg');
PDF.FlipImage(j);
PDF.PDFPAGE_ShowImage(j, 200, 0, 122, 89, 0);
PDF.EndDoc;
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
long j = PDF.AddImageFromFile("picture.jpg");
PDF.FlipImage(j);
PDF.PDFPAGE_ShowImage(j, 200, 0, 122, 89, 0);
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
j = PDF.AddImageFromFile("picture.jpg")
PDF.FlipImage j
PDF.PDFPAGE_ShowImage j, 200, 0, 122, 89, 0
PDF.EndDoc
How to flip an image upside-down

C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
LONG j = PDF->AddImageFromFile("picture.jpg");
PDF->FlipImage(j);
PDF->PDFPAGE_ShowImage(j, 200, 0, 122, 89, 0);
PDF->EndDoc();

See Also

Reference