No generalized graphics Path?

  • Thread starter Thread starter Jon Slaughter
  • Start date Start date
J

Jon Slaughter

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
 
Jon Slaughter said:
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.
 
Michael C said:
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
 
Jon Slaughter said:
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
 
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;/
 
Jon Slaughter said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top