![]() |
| | #1 |
| Registered User Join Date: Jul 2004
Posts: 222
| clipping path This is my clip region drawing function. Code: void RectDraw(HDC *hdc)
{
BOOL success;
int nX = 150;
int nY = 150;
DWORD dwRadius = 100;
float xStartAngle = 60;
float xSweepAngle = 60;
HGDIOBJ hNewObj;
HBRUSH hBrush;
POINT points[] = {
{1700, 1700},
{2000, 2000},
{2562, 1503}
};
// set up the brush
hBrush = CreateSolidBrush(RGB(44, 25, 64));
// Begin Path
success = BeginPath(*hdc);
// Create a Path
success = Rectangle(*hdc, 150, 150, 200, 200);
success = EndPath(*hdc);
success = SelectClipPath(*hdc, RGN_AND);
}
Code: RectDraw(&hDC); PieDraw(&hDC); // has shown to work |
| stanlvw is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shortest Path Maze Solver (Breadth Search Help) | Raskalnikov | C Programming | 5 | 04-07-2009 07:41 PM |
| Can't figure out what keeps hanging up my program | shays | C Programming | 7 | 11-12-2007 02:59 PM |
| Shortest path problem | Digitalxero | C++ Programming | 0 | 10-25-2005 05:32 PM |
| linked list recursive function spaghetti | ... | C++ Programming | 4 | 09-02-2003 02:53 PM |
| Problem building Quake source | Silvercord | Game Programming | 14 | 01-25-2003 10:01 PM |