LBitmapBase::Shear
#include "ltwrappr.h"
virtual L_INT LBitmapBase::Shear(nAngle, bHorizontal=TRUE, crFill=0)
L_INT nAngle; |
/* angle of slant */ |
L_BOOL bHorizontal; |
/* flag that indicates the direction of the shear*/ |
COLORREF crFill; |
/* COLORREF value for the fill color */ |
Moves the corners of the class object's bitmap in the fashion of a parallelogram.
Parameter |
Description |
|
nAngle |
The angle of slant. Positive values are for clockwise angles; negative values are for counterclockwise angles. The angle is expressed in hundredths of degrees, with a limit of 4500 (45 degrees). |
|
bHorizontal |
Flag that indicates the direction of the shear. Possible values are: |
|
|
Value |
Meaning |
|
TRUE |
Horizontal shear. |
|
FALSE |
Vertical shear. |
crFill |
The COLORREF value that specifies the fill color. You can specify a COLORREF value, such as the return value of the Windows RGB macro, or you can use the PALETTEINDEX macro to specify a palette color. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
You specify an angle of slant, horizontal or vertical shear, and the fill color for the created space. The following is a horizontal example:
The angle is expressed in hundredths of degrees, with a limit of 4500 (45 degrees).
To update a status bar or detect a user interrupt during execution of this function, refer to LBase::EnableStatusCallBack.
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Elements: |
LBitmapBase::Rotate, LBitmapBase::RotateFine, LBitmapBase::Flip, LBitmapBase::Reverse, Class Members |
Topics: |
|
|
|
|
Example
LBitmapBase MyBitmap;
MyBitmap.SetFileName(TEXT("image1.cmp"));
MyBitmap.Load();
MyBitmap.Shear(2200,FALSE, RGB(220,120,220));