473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

No generalized graphics Path?

So theres no way to store state information in the graphics path such as
pens and brushes? ;/ Any way to do this that is simple? (maybe a metafile?)
I'm trying to describe a button as a "graphics path" but obviously I need so
draw with different colors and stuff.

Thanks,
Jon
Oct 23 '06 #1
5 1243
"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:X0*****************@newssvr25.news.prodigy.ne t...
So theres no way to store state information in the graphics path such as
pens and brushes? ;/ Any way to do this that is simple? (maybe a
metafile?) I'm trying to describe a button as a "graphics path" but
obviously I need so draw with different colors and stuff.
I think metafile is what you're describing.
>
Thanks,
Jon

Oct 23 '06 #2

"Michael C" <no****@nospam.comwrote in message
news:eV**************@TK2MSFTNGP04.phx.gbl...
"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:X0*****************@newssvr25.news.prodigy.ne t...
>So theres no way to store state information in the graphics path such as
pens and brushes? ;/ Any way to do this that is simple? (maybe a
metafile?) I'm trying to describe a button as a "graphics path" but
obviously I need so draw with different colors and stuff.

I think metafile is what you're describing.
Yeah, but it seems more work to do just a few little things for a simple
button in my case than just drawing it manually. (just the flat surface of
the button and the outline(4 lines and a filled rectangle))

The metafile is more general though and fits in nicely with using bitmaps
too so I will look into that.

Thanks,
Jon
Oct 23 '06 #3

"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:cX*******************@newssvr25.news.prodigy. net...
>
"Michael C" <no****@nospam.comwrote in message
news:eV**************@TK2MSFTNGP04.phx.gbl...
>"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:X0*****************@newssvr25.news.prodigy.n et...
>>So theres no way to store state information in the graphics path such as
pens and brushes? ;/ Any way to do this that is simple? (maybe a
metafile?) I'm trying to describe a button as a "graphics path" but
obviously I need so draw with different colors and stuff.

I think metafile is what you're describing.

Yeah, but it seems more work to do just a few little things for a simple
button in my case than just drawing it manually. (just the flat surface of
the button and the outline(4 lines and a filled rectangle))

The metafile is more general though and fits in nicely with using bitmaps
too so I will look into that.
I guess an issue though is scaling. The "edges" of abutton shouldn't really
scale and I don't know if thats possible to do in a metafile so I will still
have to manually draw them too(but I can still include metafile ability).
Jon
Oct 23 '06 #4

"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:cX*******************@newssvr25.news.prodigy. net...
>
"Michael C" <no****@nospam.comwrote in message
news:eV**************@TK2MSFTNGP04.phx.gbl...
>"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:X0*****************@newssvr25.news.prodigy.n et...
>>So theres no way to store state information in the graphics path such as
pens and brushes? ;/ Any way to do this that is simple? (maybe a
metafile?) I'm trying to describe a button as a "graphics path" but
obviously I need so draw with different colors and stuff.

I think metafile is what you're describing.
I suppose I could also simply wrap an array of graphics paths that have a
pen and brush associated with each element in the array? Seems like it
becomes more and more work though;/
Oct 23 '06 #5
"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:G8*****************@newssvr29.news.prodigy.ne t...
I suppose I could also simply wrap an array of graphics paths that have a
pen and brush associated with each element in the array? Seems like it
becomes more and more work though;/
I'd just draw it manually. 99% of controls would be done this way with the
possibility of a metafile or bitmap as an option.

Michael
Oct 23 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: BlackHawke | last post by:
My name is Nick Soutter, I own a small game development company (www.aepoxgames.net) making our first game (www.andromedaonline.net) in java. I am writing because we are having a very...
8
by: Nathan Sokalski | last post by:
I am trying to write code to rotate a graphic that I have. Here is the code I am currently using: Dim frogbitmap As New Bitmap(Drawing.Image.FromFile(Server.MapPath("images/frog.gif"))) Dim...
5
by: iainfogg | last post by:
I had an ASP.NET 2.0 site which works fine on my PC. I have just copied it to a server, and set it up to run in a virtual folder. The web pages work fine, but the graphics won't load - if I try to...
2
by: Mark Ingram | last post by:
Hi, I would like to know which is the faster method to call, FillRectangle or FillPath. I have a path which is essentially a square, except for rounded corners, so I can end up with 2 almost...
1
by: IvoShalev | last post by:
Hi there, I just want to give some sudgestions on how to draw some plain things only using the header file <graphics.hand of course the standart files <stdio.h<conio.h<stdlib.h>. First of All...
6
by: Blasting Cap | last post by:
I have to change the front page for a sales system I work on, and want to use some thumbnails of wallpaper that is on a sister site. The wallpapers are jpegs, and are 640, 800, 1024 & 1280 in...
2
by: wstsoi | last post by:
hi I have to read images from spreadsheet, is it possible to do with php?
5
by: Andy | last post by:
Hi, I am using the following code to render a text string in a new bitmap file. The code works, but the text looks, well, crappy, even though I told it to use ClearType hints. Any idea how to...
10
by: eddie tan | last post by:
Hi, I have a picturebox with graphics drawn from different objects. In one object I used Pen P1; P1 = new Pen(Color.Blue, 3); Graphics g = null; g = Graphics.FromImage(image.Image);...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.