ImageGear for Java
rotate(ImGearPage,double,ImGearRotationModes,ImGearPixel) Method
Image to rotate.
Rotation angle in degrees.
Rotation mode. ImGearRotationModes.CLIP means that the image size is not changed during rotation and the part of picture out of image boundary is cut. ImGearRotationModes.EXPAND changes the image size according to the new picture boundary.
Background color to fill the out of picture area. Can be null. This method processes all channels of the image as well as image's ROI, if it exists.

Background should be in the same color space as the Page, including Alpha and Extra channels. Background must have the same channel count and bit depth as a DIB?s color space.

Rotates an image.
Syntax
public static void rotate( 
   ImGearPage page,
   double angle,
   ImGearRotationModes mode,
   ImGearPixel background
)

Parameters

page
Image to rotate.
angle
Rotation angle in degrees.
mode
Rotation mode. ImGearRotationModes.CLIP means that the image size is not changed during rotation and the part of picture out of image boundary is cut. ImGearRotationModes.EXPAND changes the image size according to the new picture boundary.
background
Background color to fill the out of picture area. Can be null. This method processes all channels of the image as well as image's ROI, if it exists.

Background should be in the same color space as the Page, including Alpha and Extra channels. Background must have the same channel count and bit depth as a DIB?s color space.

See Also

Reference

ImGearProcessing Class
ImGearProcessing Members
Overload List

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback