Is there a way so you could just draw on the screen ?
Like in a powerpoint presentation where you can use markers , or in paint only without paint .
See it this way : you take a marker in your hand and start drawing on your screen , free-hand .
PS don't do that :p
writing on screen
Started by ikkeugh, Oct 17 2007 06:42 AM
29 replies to this topic
#1
Posted 17 October 2007 - 06:42 AM
|
|
|
#2
Guest_Jordan_*
Posted 17 October 2007 - 07:58 AM
Guest_Jordan_*
You can track your mouse pixels and wherever your mouse is draw a pixel. You can have a selection that would allow you to change the pixel colors and size.
To draw on the desktop you would have to make the main screen transparent. This would make it appear as though you are drawing on the actual desktop.
Here is code to get you started: VB Paint: Emulates MS Paint with Additional Features
To draw on the desktop you would have to make the main screen transparent. This would make it appear as though you are drawing on the actual desktop.
Here is code to get you started: VB Paint: Emulates MS Paint with Additional Features
#3
Posted 17 October 2007 - 08:15 AM
no , i'm really talking on writing on the screen , not on a form .
Is this possible ?
Maybe an API to change the color the pixel has .
Is this possible ?
Maybe an API to change the color the pixel has .
#4
Posted 18 October 2007 - 01:14 PM
Will a transparent Big Form (that covers the screen) do it? or you have something else in mind?
#5
Posted 19 October 2007 - 06:59 AM
well , is there another solution (without an other form ? )
Or how to do this without modules ?
It should only draw a figure (circle) and if you hold the cursor down and move it , everything turns into that collor that the user chooses .
If you look at the paint exemple with modules , the figure should be the largest pensel .
Or how to do this without modules ?
It should only draw a figure (circle) and if you hold the cursor down and move it , everything turns into that collor that the user chooses .
If you look at the paint exemple with modules , the figure should be the largest pensel .
#6
Posted 19 October 2007 - 08:24 AM
I found one, I tought it would be less easier .now , how to change the color and the drawing figure ?
'Variables used for the drawing tool. Dim Drawing As Boolean Dim FHLastX As Long Dim FHLastY As Long Private Sub Form_Load() Drawing = False End Sub Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) 'Specify that we are drawing now. Drawing = True 'Start where the mouse cursor is. FHLastX = X FHLastY = Y End Sub Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) 'This is the technique we are using to 'draw freehand decently. Instead of drawing each point, 'we join the points up with lines. This is required as the 'MouseMove event will not fire on every pixel. If Drawing = True Then Form1.Line (FHLastX, FHLastY)-(X, Y) FHLastX = X FHLastY = Y End If End Sub Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) 'Stop drawing. Drawing = False End Sub
#7
Posted 19 October 2007 - 10:32 AM
How do I get focus on the first form without clicking the second ?
It's in the zip file
Still to do : focus the first form
change the color
make the second form transparant
It's in the zip file
Still to do : focus the first form
change the color
make the second form transparant
Attached Files
#8
Posted 27 October 2007 - 01:56 AM
Please include the addon 'etShapedForm.ocx' so I can have a better look. Thanks.
#9
Posted 27 October 2007 - 01:33 PM
It's not advisable to write directly to the desktop window, but if you really insist, you'd first have to create a DIB handled by a SAFEARRY so you can access the DIB's pixels directly.
once that's done, just get the Desktop window's DC and BitBlt.
once that's done, just get the Desktop window's DC and BitBlt.
#10
Posted 28 October 2007 - 12:39 PM
I'm so sorry , this should be better ...
Attached Files
#11
Posted 28 October 2007 - 01:32 PM
Well I don't see any drawing on screen.. it's just drawing on a normal form?!
#12
Posted 30 October 2007 - 10:25 AM
Because it isn't working !!!


Sign In
Create Account


Back to top











