به هر حال سی شارپ یک سری توابع گرافیکی داره من اونا رو یک جا تو یک برنامه جمع کردم برای آموزش و یادگیری و مطالعه در سطح پائین فکر میکنم مناسب باشه
این توابع گرافیکی که با CreateGraphics(); شروع می شوند
برای رسم مسطتیل دایره چند ضلعی و رفتار هایی مثل بزرگنمائی انتقال چرخش و این چیزا به کار میرن
drawretangle,arc,elipse,string
و یه همچین چیزایی
این برنامه با استفاده از visual stodiu C# 2010 نوشته شده شاید با نسخه های دیگه سازگار نباشه میتونید از فایل tamrin.cs استفاده کنید
اینم یه سری توضیحات انگلیسی :
Clear: clears the entire surface and fills it with color.
DrawEllipse: draws an ellipse or circle defined by a bounding rectangle specified by a pair of coordinates, a height, and width.
DrawIcon and DrawUnstretched: draw the image represented by the specified icon at the specified coordinates, with or without scaling the icon.
DrawImage: draws the specified Image object at the specified location.
DrawLine: draws a line connecting two points by the coordinate pairs.
DrawLines: draws a series of line segments that connect an array of Point structures.
DrawPath: draws a series of connected lines and curves.
DrawPie: draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
DrawPolygon: draws a shape with three or more sides as defined by an array of Point structures
DrawRectangle: draws a rectangle or square, specified by a coordinate pair, a width, and a height.
DrawString: draws the specified text string at the specified location with the specified Brush and Font objects.
Download: tamrin
هیچ نظری موجود نیست:
ارسال یک نظر