List Info

Thread: New To Graphics -- Need Help




New To Graphics -- Need Help
user name
2006-10-27 21:55:41
I found the following code at a sight:

/// <param name="graphicsSurface">Graphics
object on which the cards are to
be drawn.</param>
public void Begin( Graphics graphicsSurface )
{
        this.graphicsSurface = graphicsSurface;
      this.graphicsDC = IntPtr.Zero;
}

Which is in a class

Now from the main form I need to call this function so I
have

cardDrawing.Begin(NOT SURE WHAT TO PUT HERE);
The only place I have been able to find a Graphics object is
in the onPaint
event which of course does help me as I want to Draw in a
button event.

Any help would be greatly appreciated.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )