| Top |
|
[VC++] m_Engine.SetFileName("Sample"); m_Engine.BeginDoc();
m_Engine.SetPenWidth(1);
// Set pen color to red, and style to Solid. m_Engine.SetPenColor(RGB(255, 0, 0)); m_Engine.SetPenStyle(psSolid); m_Engine.LineA(0, 0, 2, 2);
// Set pen color to green, and style to Dash. m_Engine.SetPenColor(RGB(0, 255, 0)); m_Engine.SetPenStyle(psDash); m_Engine.LineA(2, 0, 4, 2);
// Set pen color to blue, and style to Dot. m_Engine.SetPenColor(RGB(0, 0, 255)); m_Engine.SetPenStyle(psDot); m_Engine.LineA(4, 0, 6, 2);
m_Engine.EndDoc();
[VB] With gtEngineX1 .FileName = "Sample" .BeginDoc
.PenWidth = 1
'Set pen color to red, and style to Solid. .PenColor = RGB(255, 0, 0) .PenStyle = psSolid .LineA 0, 0, 2, 2
'Set pen color to green, and style to Dash. .PenColor = RGB(0, 255, 0) .PenStyle = psDash .LineA 2, 0, 4, 2
'Set pen color to blue, and style to Dot. .PenColor = RGB(0, 0, 255) .PenStyle = psDot .LineA 4, 0, 6, 2
.EndDoc End With
[C#] axgtEngineX1.FileName = "Sample"; axgtEngineX1.BeginDoc(); axgtEngineX1.PenWidth = 1 ; //Set pen color to red, and style to Solid. axgtEngineX1.PenColor = System.Drawing.Color.Red; axgtEngineX1.PenStyle = eDocEngineX.TxgtPenStyle.psSolid; axgtEngineX1.LineA( 0, 0, 2, 2 ); //Set pen color to green, and style to Dash. axgtEngineX1.PenColor = System.Drawing.Color.Red; axgtEngineX1.PenStyle = eDocEngineX.TxgtPenStyle.psDash ; axgtEngineX1.LineA( 2, 0, 4, 2 ); //Set pen color to blue, and style to Dot. axgtEngineX1.PenColor = System.Drawing.Color.Red; axgtEngineX1.PenStyle = eDocEngineX.TxgtPenStyle.psDot ; axgtEngineX1.LineA( 4, 0, 6, 2 ); axgtEngineX1.EndDoc();
|