|
Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LRasterPaint::OffsetClipRgn
#include "Ltwrappr.h"
L_INT LRsterPaint::OffsetClipRgn(nDX, nDY)
L_INT nDX; |
/* horizontal offset */ |
L_INT nDY; |
/* vertical offset */ |
Offsets the paint-clipping region of the device context (DC) and the bitmap.
Parameter |
Description |
nDX |
The offset in the horizontal direction. |
nDY |
The offset in the vertical direction. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes |
Comments
The toolkit will perform the necessary transformations to the offset values using the current painting transformation set by calling LRasterPaint::SetTransformation function. Therefore, the user should provide the offset values without any transformations.
Required DLLs and Libraries
LTPNT 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
Functions: |
LrasterPaint::SetClipRgn, LRasterPaint::GetClipRgn, LRasterPaint::SetTransformation, LRasterPaint::GetTransformation, Class Members |
Topics: |
Example
L_INT LRasterPaint_OffsetClipRgnExample( LRasterPaint* pRstp ) { L_INT nRet; HRGN hRgn ; /* create some region */ hRgn = CreateRectRgn ( 0, 0, 100, 100 ) ; /* set the painting tools new DC clip region */ nRet = pRstp->SetClipRgn ( hRgn ) ; if(nRet != SUCCESS) return nRet; /* offset the current painting tools clipping region */ /* using the current transformatoin settings */ nRet = pRstp->OffsetClipRgn ( 10, 10 ) ; if(nRet != SUCCESS) return nRet; /* delete the regions */ DeleteObject ( ( HRGN ) hRgn ) ; return SUCCESS; }