|
-
Jun 11th, 2001, 04:17 PM
#1
Thread Starter
New Member
FillRgn with CreateEllipticRgn
I am trying to create a filled ellipse with an image of my choice I would like the image to fill the ellipse completely, however, the image appears to tile and leaves a gap between the image and the ellipse region - is this for the hidden titlebar and if so how can I remove it.
h_brush = CreatePatternBrush(pic1.Image)
hRgn = SelectObject(Me.hdc, h_brush)
hRgn = CreateEllipticRgn(30,30, 90, 90)
FillRgn Me.hdc, hRgn, h_brush
SetWindowRgn Me.hWnd, hRgn, 1
Cheers
Rab.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|