LEADTOOLS Raster Imaging C++ Class Library Help > Classes and Member Functions > LBitmapBase > LBitmapBase Member Functions > LBitmapBase::SetSrcRect |
#include "ltwrappr.h"
virtual L_INT LBitmapBase::SetSrcRect(prcSrc)
LPRECT prcSrc; |
/* pointer to a RECT structure */ |
Sets the source rectangle for the class object.
Parameter |
Description |
prcSrc |
Pointer to a RECT structure for the new bitmap source rectangle. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Use this function to set the source rectangle for the class object.
For more information on source rectangles, destination rectangles and clipping rectangles, refer to Setting Rectangles.
This function is not working while being called from the classes LBitmapWindow, LAnimationWindow, or LAnnotationWindow.
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. |
Win32, x64.
See Also
Functions: |
LBitmapBase::GetRects, LBitmapBase::SetClipSrcRect, LBitmapBase::SetDstRect, LBitmapBase::SetClipDstRect, Class Members |
Topics: |
Example
For an example, refer to LBitmapBase::GetRects.