Click here to Skip to main content
15,913,243 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
Mycroft Holmes28-Dec-08 15:37
professionalMycroft Holmes28-Dec-08 15:37 
GeneralRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
EliottA28-Dec-08 15:57
EliottA28-Dec-08 15:57 
GeneralRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
Mycroft Holmes28-Dec-08 16:14
professionalMycroft Holmes28-Dec-08 16:14 
GeneralRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
DJMOH29-Dec-08 3:08
DJMOH29-Dec-08 3:08 
GeneralRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
DJMOH7-Jan-09 18:35
DJMOH7-Jan-09 18:35 
GeneralRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
DJMOH29-Dec-08 3:04
DJMOH29-Dec-08 3:04 
QuestionRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
DJMOH29-Dec-08 3:01
DJMOH29-Dec-08 3:01 
Questionwallpaper problem Pin
onlyehtisham28-Dec-08 10:45
onlyehtisham28-Dec-08 10:45 
hi dear,
i've a function that makes corners of a picture round which is written below...



Code:

Public Function RoundImage(ByVal img As Image, ByVal radius As Integer) As Image
Dim bmp As New Bitmap(img.Width, img.Height)
Dim g As Graphics = Graphics.FromImage(bmp)
Dim z As New GraphicsPath()
Dim r As Integer = radius
Dim d As Integer = r + r
Dim w As Integer = bmp.Width
Dim h As Integer = bmp.Height
z.StartFigure()
z.AddArc(0, 0, d, d, 180, 90)
z.AddArc(w - d - 1, 0, d, d, 270, 90)
z.AddArc(w - d - 1, h - d - 1, d, d, 0, 90)
z.AddArc(0, h - d - 1, d, d, 90, 90)
z.CloseFigure()
g.SetClip(z)
g.DrawImage(img, 0, 0)
Return bmp
End Function



it is working well. the problem is that when i apply this image as wallpaper, black color appears at corners... whereas the corners should be transparent...

im using the following function for setting the image as wallpaper...

SystemParametersInfo(20, 0, imagePath, 1)

a sample image is attached...

thanks in advance
AnswerRe: wallpaper problem Pin
Colin Angus Mackay28-Dec-08 12:44
Colin Angus Mackay28-Dec-08 12:44 
AnswerRe: wallpaper problem Pin
Dave Kreskowiak28-Dec-08 19:44
mveDave Kreskowiak28-Dec-08 19:44 
QuestionDownloadQueue [modified] Pin
Noctris28-Dec-08 2:19
Noctris28-Dec-08 2:19 
AnswerRe: DownloadQueue Pin
Ben Fair29-Dec-08 9:20
Ben Fair29-Dec-08 9:20 
QuestionVB.NET application to login in Website Pin
shrekage27-Dec-08 17:30
shrekage27-Dec-08 17:30 
AnswerRe: VB.NET application to login in Website Pin
Tony Richards28-Dec-08 1:34
Tony Richards28-Dec-08 1:34 
AnswerRe: VB.NET application to login in Website Pin
Mycroft Holmes28-Dec-08 15:10
professionalMycroft Holmes28-Dec-08 15:10 
QuestionWindows Mobile Toolbar Pin
UniBond27-Dec-08 14:58
UniBond27-Dec-08 14:58 
QuestionVB.NET - OLEDB with Foxpro table Pin
iluha27-Dec-08 13:49
iluha27-Dec-08 13:49 
AnswerRe: VB.NET - OLEDB with Foxpro table Pin
CodingYoshi27-Dec-08 21:56
CodingYoshi27-Dec-08 21:56 
GeneralRe: VB.NET - OLEDB with Foxpro table Pin
iluha28-Dec-08 4:26
iluha28-Dec-08 4:26 
GeneralRe: VB.NET - OLEDB with Foxpro table Pin
CodingYoshi29-Dec-08 3:18
CodingYoshi29-Dec-08 3:18 
GeneralRe: VB.NET - OLEDB with Foxpro table Pin
Ben Fair29-Dec-08 8:54
Ben Fair29-Dec-08 8:54 
QuestionVB.net & XML Pin
Shazz Rock26-Dec-08 21:50
Shazz Rock26-Dec-08 21:50 
AnswerRe: VB.net & XML Pin
Guffa27-Dec-08 3:58
Guffa27-Dec-08 3:58 
Questionresizing a tree node Pin
Sanam26-Dec-08 21:07
Sanam26-Dec-08 21:07 
AnswerRe: resizing a tree node Pin
Dave Kreskowiak27-Dec-08 5:51
mveDave Kreskowiak27-Dec-08 5:51 

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.