![]() You can do all sorts of things with a path like:Īnd you can also before or after your graphics processing use:īasicly the best way to do rounded rectangles is to do the math, make it a path, and then do any drawing/filling/clipping or blending with the path data. When you use this function it returns a graphics path. ![]() You can call this method from anywhere by just giving the required values to the input parameters.You can chnage the input parameters like M_intxAxis, m_intyAxis + CInt(m_diameter / 2), ObjGraphics.DrawArc(Pens.Black, ArcRect, 90, 90) ObjGraphics.DrawArc(Pens.Black, ArcRect, 0, 90) M_intyAxis + m_intHeight - CInt(m_diameter / 2)) ![]() ObjGraphics.DrawLine(Pens.Black, m_intxAxis + m_intWidth, ObjGraphics.DrawArc(Pens.Black, ArcRect, 270, 90) M_intxAxis + m_intWidth - CInt(m_diameter / 2), ObjGraphics.DrawLine(Pens.Black, m_intxAxis + CInt(m_diameter / 2), ObjGraphics.DrawArc(Pens.Black, ArcRect, 180, 90) ' Dim g As Graphics Dim BaseRect As New RectangleF(m_intxAxis, m_intyAxis, m_intWidth,ĭim ArcRect As New RectangleF(BaseRect.Location, Public Sub DrawRoundedRectangle( ByVal objGraphics As Graphics, _
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |