|
-
Feb 17th, 2000, 02:03 AM
#8
PowerPoster
I'll ask to some questions...
-Circles-
The easiest way is to set the FillStyle to Solid and draw the circle like this:
-
Picture1.Circle( 10, 20 ), 40
-
There are also API functions but this is the easiest way.
-Pencil drawing-
I don't know what you mean exactly but you can use BitBlt to draw a bitmap anywhere (You can also set it's color but I've no time to explain now).
-Pick up color-
I think you've got a palette bitmap loaded into a picturebox? Well, see this post for an answer: http://www.vb-world.net/ubb/Forum2/HTML/000622.html
-Fill a area-
Use FloodFill from the API:
-
'In module
Public Declare Function FloodFill Lib "gdi32" Alias "FloodFill" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
'Anywhere
FloodFill Picture1.hDC, 100, 200, RGB(0, 128, 255)
-
Well, like I said, no more time now... sorry, hope this helps anyway.
------------------
[email protected]
...
Every program can be reduced to one instruction which doesn't work.
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
|