Rotating stamp about the center point

Contents
[ ]

Implementation details

Stamp class allows you to add a watermark in a PDF file. You can specify image to be added as a stamp using BindImage method. The SetOrigin method allows you to set the origin of the added stamp; this origin is the lower-left coordinates of the stamp. You can also set the size of the image using SetImageSize method.

Now, we see how the stamp can be rotated about the center of the stamp. Stamp class provides a property named Rotation. This property sets or gets the rotation from 0 to 360 of stamp content. We can specify any rotation value from 0 to 360. By specifying the rotation value we can rotate the stamp about its center point. If a Stamp is an object of Stamp type then the rotation value can be specified as aStamp.Rotation = 90. In this case the stamp will be rotated at 90 degrees about the center of the stamp content. The following code snippet shows you how to rotate the stamp about the center point: