Merhaba csharpda graphics sınıfıyla pixel değerlerini vererek çizim yapıyorum.
Graphics gr = this.CreateGraphics();
// Create pens.
Pen redPen = new Pen(Color.Red, 3);
Pen greenPen = new Pen(Color.Green, 3);
// Create points that define curve.
Point point1 = new Point(50, 50);
Point point2 = new Point(100, 25);
Point point3 = new Point(200, 5);
Point point4 = new Point(250, 50);
Point point5 = new Point(300, 100);
Point point6 = new Point(350, 200);
Point point7 = new Point(250, 250);
Point[] curvePoints = { point1, point2, point3, point4, point5, point6, point7 };
// Draw lines between original points to screen.
gr.DrawLines(redPen, curvePoints);
İstediğim çizimi alabiliyorum ama bana misal 1. pointten 2. pointe giderken hangi pixellerden geçtiğinin bilgisi gerekiyor. İlk nokta ile son nokta arasında çizdiğim çizgilerin tüm pixel değerlerini bulabilir miyim ?
C# Graphics Sınıfıyla çizim
0
●305