|
-
Jan 15th, 2003, 01:31 PM
#1
Thread Starter
Addicted Member
Changing fill color
Hello all,
I have a program which uses memory dc's to store some images, now I want to draw circle on it using the eppilipse api. But, i don't know any way to change the dc's fillcolor! There probably is some api that does it, but I don't know which one :/
So if anyone knows, can you please tell me?
Thanks in advance,
Shell
-
Jan 15th, 2003, 02:31 PM
#2
Fanatic Member
It's the FillRgn API:
Code:
Declare Function FillRgn Lib "gdi32.dll" (ByVal hdc As Long, ByVal hRgn As Long, ByVal hBrush As Long) As Long
Information could be found at vbapi.com, but that site doesn't exist anymore, and has become part of developer.com.
-
Jan 16th, 2003, 02:44 AM
#3
Member
use createsolidbrush api to create a brush for a color.
then use selectobject to select a particular brush
finally at the end you must use deleteobject for deleting the brush
 ppl saw this
Die, ***** Die !
-
Jan 16th, 2003, 05:19 AM
#4
PowerPoster
anjulpa, i guest you need to restore the origianl brush which you get from the SelectObject as you assign the new brush to the memory dc.
-
Jan 16th, 2003, 08:39 AM
#5
Thread Starter
Addicted Member
Ah! Why didn't I think of that lol.
I'll give it a try.
Thanks,
Shell
-
Jan 16th, 2003, 09:34 AM
#6
Member
anjulpa, i guest you need to restore the origianl brush which you get from the SelectObject as you assign the new brush to the memory dc
Hey, wouldn't he know that if he were making a program ???
 ppl saw this
Die, ***** Die !
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
|