どのように変換するには形状からDirectxをgdi+を使用c#
質問
描いているのかのクライアントまで、フルのc#ソ.私は絵描きをするというもので、円同じ寸法c#ソースコードを使用GDI.こんに変換することからdirectxをGDI.合体を助けます。plzを応答でした。する方法を教えてくださいます。はアルゴリズムを利用する........また、入力のためのセンターの(x,y)この点の形式です。がgdiでピクセル形式です。どのようにしてできるのdirectxポイントgdi+ピクセル
解決
こちらのリンクからMSDNを紹介する グラフィック描画にWindows Forms.でれする必要があるということのようなもの:
public Form1()
{
InitializeComponent();
this.Paint += new PaintEventHandler(Form1_Paint);
// This works too
//this.Paint += (_, args) => DrawCircle(args.Graphics);
}
void Form1_Paint(object sender, PaintEventArgs e)
{
DrawCircle(e.Graphics);
}
private void DrawCircle(Graphics g)
{
int x = 0;
int y = 0;
int radius = 50;
// The x,y coordinates here represent the upper left corner
// so if you have the center coordinates (cenX, cenY), you will have to
// substract radius from both cenX and cenY in order to represent the
// upper left corner.
// The width and height represents that of the bounding rectangle of the circle
g.DrawEllipse(Pens.Black, x, y, radius * 2, radius * 2);
// Use this instead if you need a filled circle
//g.FillEllipse(Brushes.Black, x, y, radius * 2, radius * 2);
}
その後いうダブルバッファリング技術、リンク:
所属していません StackOverflow