Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxPdfDocument::RotatedImage ( const wxString &  file,
double  x,
double  y,
double  w,
double  h,
double  angle,
const wxString &  type = wxEmptyString,
const wxPdfLink link = wxPdfLink(-1),
int  maskImage = 0 
) [virtual]

Puts a rotated image in the page.

The upper-left corner must be given.

The format can be specified explicitly or inferred from the file extension.

It is possible to put a link on the image.

Remark: if an image is used several times, only one copy will be embedded in the file.

Parameters:
fileName of the file containing the image.
xAbscissa of the upper-left corner.
yOrdinate of the upper-left corner.
wWidth of the image in the page. If not specified or equal to zero, it is automatically calculated.
hHeight of the image in the page. If not specified or equal to zero, it is automatically calculated.
angleAngle of rotation
typeImage format. Possible values are (case insensitive): JPG, JPEG, PNG, GIF, WMF. If not specified, the type is inferred from the file extension.
linkURL or identifier returned by AddLink().
maskImageId of an image mask created previously by ImageMask().
See also:
Image(), AddLink()

Definition at line 1718 of file pdfdoc.cpp.

References Image(), Rotate(), StartTransform(), and StopTransform().

{
  // Image rotated around its upper-left corner
  StartTransform();
  Rotate(angle, x, y);
  Image(file, x, y, w, h, type, link, maskImage);
  StopTransform();
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index