Click here to Skip to main content
15,884,353 members
Home / Discussions / C#
   

C#

 
GeneralFree Icons Pin
obelisk296-Jan-04 14:41
obelisk296-Jan-04 14:41 
GeneralRe: Free Icons Pin
Heath Stewart6-Jan-04 17:34
protectorHeath Stewart6-Jan-04 17:34 
GeneralFolderBrowserDialog do not show data !! Pin
kappen6-Jan-04 12:48
kappen6-Jan-04 12:48 
GeneralRe: FolderBrowserDialog do not show data !! Pin
Heath Stewart6-Jan-04 17:30
protectorHeath Stewart6-Jan-04 17:30 
GeneralRe: FolderBrowserDialog do not show data !! Pin
Anonymous7-Jan-04 8:30
Anonymous7-Jan-04 8:30 
GeneralRe: FolderBrowserDialog do not show data !! Pin
Heath Stewart7-Jan-04 8:44
protectorHeath Stewart7-Jan-04 8:44 
GeneralGDI + package help Pin
Miles Roberts6-Jan-04 12:20
Miles Roberts6-Jan-04 12:20 
GeneralRe: GDI + package help Pin
Heath Stewart6-Jan-04 17:27
protectorHeath Stewart6-Jan-04 17:27 
There's a couple decent articles on this site about rubber bands. Just search for "rubber" or something (I wouldn't recommend doing a google search with that keyword, though! Poke tongue | ;-P )

As far as pens and brushes, you can extend both Pen and Brush and create your own. There's also brushes with support for hatches in the System.Drawing.Drawing2D namespace.

For polygons, use the GraphicsPath class.

What I don't understand is that, while you're posting to the C# forum (hence using .NET), that you're not just using the System.Drawing namespace (like the Graphics class). I mean, maybe I'm interpretting your question wrong, but why not use what's already there? If you have to save these vectors to a file, you can always use serialization (though some ISerializationSurrogates might be necessary) or create your own document format to save vector instructions (like an Adobe Illustrator file, for example).

You might also consider using SVG to save those instructions. It's a standard (or recommendation, don't remember its current state but I know it's still evolving pretty heavily). There is a couple good articles here on CP. Just search for, of course, "SVG".

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralUsing a txtbox as output window Pin
Melanius6-Jan-04 11:10
Melanius6-Jan-04 11:10 
GeneralRe: Using a txtbox as output window Pin
hxxbin6-Jan-04 11:26
hxxbin6-Jan-04 11:26 
GeneralRe: Using a txtbox as output window Pin
Melanius6-Jan-04 11:38
Melanius6-Jan-04 11:38 
GeneralRe: Using a txtbox as output window Pin
Kentamanos6-Jan-04 11:41
Kentamanos6-Jan-04 11:41 
GeneralRe: Using a txtbox as output window Pin
Melanius6-Jan-04 13:17
Melanius6-Jan-04 13:17 
GeneralRe: Using a txtbox as output window Pin
Heath Stewart6-Jan-04 17:21
protectorHeath Stewart6-Jan-04 17:21 
GeneralRe: Using a txtbox as output window Pin
leppie6-Jan-04 13:58
leppie6-Jan-04 13:58 
GeneralRe: Using a txtbox as output window Pin
Luther Baker6-Jan-04 18:33
Luther Baker6-Jan-04 18:33 
Generalusing a C++ dialog window from C# Pin
misterbear6-Jan-04 10:14
misterbear6-Jan-04 10:14 
GeneralRe: using a C++ dialog window from C# Pin
Mazdak6-Jan-04 10:44
Mazdak6-Jan-04 10:44 
GeneralRe: using a C++ dialog window from C# Pin
Heath Stewart6-Jan-04 17:19
protectorHeath Stewart6-Jan-04 17:19 
GeneralRe: using a C++ dialog window from C# Pin
misterbear7-Jan-04 0:29
misterbear7-Jan-04 0:29 
GeneralRe: using a C++ dialog window from C# Pin
Heath Stewart7-Jan-04 3:00
protectorHeath Stewart7-Jan-04 3:00 
GeneralAutoresizing two panels with one splitter Pin
RB@Emphasys6-Jan-04 9:49
RB@Emphasys6-Jan-04 9:49 
GeneralRe: Autoresizing two panels with one splitter Pin
Heath Stewart6-Jan-04 17:17
protectorHeath Stewart6-Jan-04 17:17 
GeneralRe: Autoresizing two panels with one splitter Pin
Luther Baker6-Jan-04 18:47
Luther Baker6-Jan-04 18:47 
GeneralRe: Autoresizing two panels with one splitter Pin
Heath Stewart6-Jan-04 18:55
protectorHeath Stewart6-Jan-04 18:55 

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.