Click here to Skip to main content
16,008,750 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralReport quering Pin
Waheire5-May-05 3:51
Waheire5-May-05 3:51 
GeneralRe: Report quering Pin
Joey Picerno5-May-05 6:51
Joey Picerno5-May-05 6:51 
GeneralTimer event Pin
Ben_115_net5-May-05 3:37
Ben_115_net5-May-05 3:37 
GeneralRe: Timer event Pin
Dave Kreskowiak5-May-05 4:22
mveDave Kreskowiak5-May-05 4:22 
GeneralFast pixel drawing on .net COMPACT Framework Pin
CarlosMMartins5-May-05 0:32
CarlosMMartins5-May-05 0:32 
GeneralRe: Fast pixel drawing on .net COMPACT Framework Pin
Dave Kreskowiak5-May-05 4:26
mveDave Kreskowiak5-May-05 4:26 
GeneralRe: Fast pixel drawing on .net COMPACT Framework Pin
CarlosMMartins5-May-05 5:21
CarlosMMartins5-May-05 5:21 
QuestionHow to set pixel color on paint event Pin
meghadwivedi4-May-05 21:37
meghadwivedi4-May-05 21:37 
I have been using following code to set pixel color.Although its is coloring the pixels of picture box. But it is not coloring drawn lines on paint event.I fetch the pixel and trying to convert its color in black but drawn any line in differnet color, not able to convert in black.

Code:
On m0usemove event:-

Dim bm As Bitmap = PictureBox1.Image
xmax = bm.Width - 1
ymax = bm.Height - 1
For y = 0 To 10
For x = 0 To 10
' Convert the pixels to grayscale.
With bm.GetPixel(e.X + 10, e.Y + 10)
clr = 0.1 * .R + 0.2 * .G + 0.2 * .B
End With
bm.SetPixel(e.X + 10, e.Y + 10, Color.FromArgb(255, clr, clr, clr))

Next x
Next y


On paint event i have been using below code:

For index As Integer = 0 To 3
Dim CurrentPen = New Pen(Color.FromArgb(myAlpha, myUserColor(index)), 15) 'Set up the pen
e.Graphics.DrawPath(CurrentPen, path(index)) 'draw the path!
Next index



If any body have idea its welcomed!!

AnswerRe: How to set pixel color on paint event Pin
Dave Kreskowiak5-May-05 4:25
mveDave Kreskowiak5-May-05 4:25 
GeneralCannot Create ActiveX Component 429 Pin
Rizwan Bashir4-May-05 21:15
Rizwan Bashir4-May-05 21:15 
Generalsms to mobiles from Web application Pin
din butt4-May-05 20:05
din butt4-May-05 20:05 
Generalcopying files in VB6.0 Pin
madhu_panisetty4-May-05 19:07
madhu_panisetty4-May-05 19:07 
GeneralRe: copying files in VB6.0 Pin
jonathan154-May-05 22:45
jonathan154-May-05 22:45 
GeneralRe: copying files in VB6.0 Pin
madhu_panisetty5-May-05 1:34
madhu_panisetty5-May-05 1:34 
GeneralModules Pin
memee814-May-05 14:31
memee814-May-05 14:31 
GeneralRe: Modules Pin
Dave Kreskowiak5-May-05 4:10
mveDave Kreskowiak5-May-05 4:10 
GeneralRe: Modules Pin
memee815-May-05 5:34
memee815-May-05 5:34 
GeneralRe: Modules Pin
Dave Kreskowiak5-May-05 5:55
mveDave Kreskowiak5-May-05 5:55 
Generalhandles for api calls in VB Pin
embrt4-May-05 12:07
embrt4-May-05 12:07 
GeneralRe: handles for api calls in VB Pin
rwestgraham4-May-05 15:28
rwestgraham4-May-05 15:28 
GeneralRe: handles for api calls in VB Pin
Dave Kreskowiak5-May-05 4:14
mveDave Kreskowiak5-May-05 4:14 
GeneralRe: handles for api calls in VB Pin
embrt5-May-05 4:44
embrt5-May-05 4:44 
GeneralRe: handles for api calls in VB Pin
rwestgraham5-May-05 12:36
rwestgraham5-May-05 12:36 
Generalsetup and deployment Pin
kamilah4-May-05 10:23
kamilah4-May-05 10:23 
Generaltab control Pin
kamilah4-May-05 10:22
kamilah4-May-05 10:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.