Hi,
I use the following code to draw a rectangle:
Dim recBackground As Rectangle
recBackground = New Rectangle(10, 10, 100, 100)
Dim lgb As New LinearGradientBrush(recBackground, Color.White,
Color.GhostWhite, LinearGradientMode.Vertical)
e.Graphics.FillRectangle(lgb, recBackground)
Can I in some way make the corners of the rectangle rounded?
Thanks in advance!
--
Lasse 2 1262 http://www.dotnet247.com/247referenc.../10/51694.aspx
Regards - OHM
"Lasse Eskildsen" <Le****@DELETEwebspeed.dk> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl... Hi, I use the following code to draw a rectangle:
Dim recBackground As Rectangle recBackground = New Rectangle(10, 10, 100, 100)
Dim lgb As New LinearGradientBrush(recBackground, Color.White, Color.GhostWhite, LinearGradientMode.Vertical)
e.Graphics.FillRectangle(lgb, recBackground)
Can I in some way make the corners of the rectangle rounded?
Thanks in advance!
--
Lasse
http://www.dotnet247.com/247referenc.../10/51694.aspx
Regards - OHM
"Lasse Eskildsen" <Le****@DELETEwebspeed.dk> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl... Hi, I use the following code to draw a rectangle:
Dim recBackground As Rectangle recBackground = New Rectangle(10, 10, 100, 100)
Dim lgb As New LinearGradientBrush(recBackground, Color.White, Color.GhostWhite, LinearGradientMode.Vertical)
e.Graphics.FillRectangle(lgb, recBackground)
Can I in some way make the corners of the rectangle rounded?
Thanks in advance!
--
Lasse
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Boni |
last post by:
Dear all,
I have about 500 rectangles on the picturebox, and if I take one with the
move and move I MUST clear the whole picture and redraw, which takes about
1-2 second. The rectangles are...
|
by: johnb41 |
last post by:
My app has an image (black/white tiff) displayed in a picturebox
(scanned text document). I need the user to be able to draw either
white or black rectangles on it. (to hide/cover up sensitive...
|
by: YYZ |
last post by:
Sorry for the multipost, but no one was responding in the other thread.
If any solution is forthcoming, I will return to the original thread
and post it there as well.
I've created a usercontrol...
|
by: brianbasquille |
last post by:
Hello all,
Haven't been here in a while but undertaking a project where i'm
branching out the
(presumingly abandoned) open-source OpenHTPC (www.openhtpc.org) with
additional Personal Video...
|
by: pradnyapatil29 |
last post by:
I am trying to draw a chart similar to GANTT chart in
asp.net.
Right now, I am drawing the rectangles on bitmap...but I dont
want to use bitmap
. Coz loading bitmap takes time...Is there...
|
by: ShurikAg |
last post by:
Hi,
I have this kind of class:
// SplashWnd.cpp : implementation of the CSplashWnd class
//
/////////////////////////////////////////////////////////////////////////////
|
by: bienvankhat |
last post by:
Hi, i want to simulate a led matrix panel. I create a 8x8 dot led matrix by drawing 64 rectangles in a small area. The panel is made up by 100 matrices. But the drawing process is very slow, it take...
|
by: ddecoste |
last post by:
I have a need to add a visual representation to some data in Access.
I need to draw a matix of squares inside another square. I have all
the data that I need in a record in Access. The data...
|
by: cty0000 |
last post by:
I have some quiestion...
I want to draw line,point,rectangles and etc... on the from
So I code like this..
public update()
{
g = this.CreateGraphics();
g.FillRectangle(Brushes.White, x1,...
|
by: RobinS |
last post by:
I am drawing a rectangle on a picture that has already been drawn
on the graphics area (a user control). It works something like this:
//in the MouseDown event
m_isDragging = true;
m_oldX =...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |