Now a simple GUI
Seems like the easiest way for you right now, so sure =)
Don't hesitate to post questions if you get stuck too.
Don't hesitate to post questions if you get stuck too.
Unfortunately, no. There's no way to manipulate the drawing of several graphics into a single pictureBox at one time, as far as I know.
And yea, I think it'd be best to stick to his own code here for the GUI too =P
Its weird. Using GDI back in 2000, i could easily draw multiple alpha-blended sprites to a double buffered picturebox (alpha blending in GDI was introduced with Windows 98) without much trouble. You'd probably rather set up a d3d render context in your picturebox, though... -I suggest you use wpf for forms,real-time graphics and platform support outside windows. You design forms in WPF the same way KatenoZ explained, still in MVS, still C#.
Just my 2 cents.
EDIT: "Doublebuffered" meaning having multiple hDCs, and copying from one to another. (The picturebox didn't have a doublebuffered property, maybe it does now, dunno. ;) )
Think you can dig up some articles about this? This really got me interested.
As for your question, no, pictureBoxes don't have a doublebuffer property now either =\
As for your question, no, pictureBoxes don't have a doublebuffer property now either =\
Think you can dig up some articles about this? This really got me interested.
Sure, Kaze, this is the demo i originally got the technique from back when I used VB6 as my primary language:
http://www.freevbcode.com/ShowCode.asp?ID=2987
I'm sure it'll work with other languages capable of using Windows GDI.
I found some more language neutral (C++, really) articles:
http://msdn.microsoft.com/en-us/library/dd183353(v=vs.85).aspx
http://www.codeproject.com/KB/GDI/pxalphablend.aspx
As for your question, no, pictureBoxes don't have a doublebuffer property now either =\
Bummer, :/, oh well, it's just two handles and frame copying. Would be cool, though.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement