Click here to Skip to main content
15,885,985 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Measuring of Text with Multiple Fonts in One Single Line Pin
paul116713-Nov-14 22:17
paul116713-Nov-14 22:17 
QuestionImage editor control for asp.net Pin
Member 111274939-Oct-14 19:22
Member 111274939-Oct-14 19:22 
AnswerRe: Image editor control for asp.net Pin
Garth J Lancaster9-Oct-14 19:33
professionalGarth J Lancaster9-Oct-14 19:33 
QuestionPNG vs JPG Pin
V.11-Sep-14 19:46
professionalV.11-Sep-14 19:46 
AnswerRe: PNG vs JPG Pin
Peter_in_278011-Sep-14 20:51
professionalPeter_in_278011-Sep-14 20:51 
AnswerRe: PNG vs JPG Pin
Pete O'Hanlon11-Sep-14 21:01
mvePete O'Hanlon11-Sep-14 21:01 
AnswerRe: PNG vs JPG Pin
Chris Losinger2-Dec-14 4:31
professionalChris Losinger2-Dec-14 4:31 
QuestionBezier Curve issue Pin
pvpeng4-Jul-14 4:16
pvpeng4-Jul-14 4:16 
Hi all,

4 points are defined as follows:

C#
float[,] ctrlpoints = new float [4,3] {{ -4.0f, -4.0f, 0.0f }, { -2.0f, 4.0f, 0.0f }, { 2.0f, -4.0f, 0.0f }, { 4.0f, 4.0f, 0.0f }};


When the 4 points are called in following method:

C#
private void openGLControl_OpenGLDraw(object sender, RenderEventArgs e)
{
    //  Get the OpenGL object.
    OpenGL gl = openGLControl.OpenGL;

    //  Clear the color and depth buffer.
    gl.Clear(OpenGL.GL_COLOR_BUFFER_BIT | OpenGL.GL_DEPTH_BUFFER_BIT);

    int i;

    gl.Color(1.0f, 1.0f, 1.0f);
    gl.Begin(OpenGL.GL_LINE_STRIP);
    for (i = 0; i <= 30; i++)
    {
        gl.EvalCoord1((float)i / 30.0);
    }
    gl.End();
    // display the control points
    gl.PointSize(5.0f);
    gl.Color(1.0f, 1.0f, 0.0f);
    gl.Begin(OpenGL.GL_POINTS);
    for (i = 0; i < 4; i++)
    {
        gl.Vertex(&ctrlpoints[i][0]);
    }
    gl.End();
    gl.Flush();
}


The &ctrlpoints[i][0] in gl.Vertex(&ctrlpoints[i][0]) was displayed to be an error.

How to fix the problem? Thanks!
QuestionRe: Bezier Curve issue Pin
Richard Deeming4-Jul-14 4:39
mveRichard Deeming4-Jul-14 4:39 
AnswerRe: Bezier Curve issue Pin
Richard MacCutchan4-Jul-14 5:53
mveRichard MacCutchan4-Jul-14 5:53 
AnswerRe: Bezier Curve issue Pin
Bernhard Hiller13-Jul-14 21:58
Bernhard Hiller13-Jul-14 21:58 
QuestionHelp calculating a perpendicular line end point. Pin
Austin_Cpp28-Jun-14 10:58
Austin_Cpp28-Jun-14 10:58 
AnswerRe: Help calculating a perpendicular line end point. Pin
Yang Kok Wah29-Jun-14 0:33
Yang Kok Wah29-Jun-14 0:33 
GeneralRe: Help calculating a perpendicular line end point. Pin
Austin_Cpp1-Jul-14 18:41
Austin_Cpp1-Jul-14 18:41 
QuestionHow to write glutSwapBuffers() in SharpGL format? Pin
pvpeng27-Jun-14 11:05
pvpeng27-Jun-14 11:05 
QuestionSharpGL: how to add a solid object to a scene Pin
Member 1075894613-Jun-14 10:31
Member 1075894613-Jun-14 10:31 
AnswerRe: SharpGL: how to add a solid object to a scene Pin
Richard MacCutchan13-Jun-14 21:40
mveRichard MacCutchan13-Jun-14 21:40 
QuestionHow to make a font height equal to "tmHeight"? Pin
transoft12-Jun-14 9:02
transoft12-Jun-14 9:02 
AnswerRe: How to make a font height equal to "tmHeight"? Pin
Eddy Vluggen12-Jun-14 10:25
professionalEddy Vluggen12-Jun-14 10:25 
GeneralRe: How to make a font height equal to "tmHeight"? Pin
transoft12-Jun-14 11:00
transoft12-Jun-14 11:00 
GeneralRe: How to make a font height equal to "tmHeight"? Pin
Eddy Vluggen13-Jun-14 2:59
professionalEddy Vluggen13-Jun-14 2:59 
GeneralRe: How to make a font height equal to "tmHeight"? Pin
jinzai17-Jul-14 14:01
jinzai17-Jul-14 14:01 
QuestionNeeded: Printing Tutorial for GDI+ screen to Single Page Pin
Austin_Cpp29-May-14 11:23
Austin_Cpp29-May-14 11:23 
AnswerRe: Needed: Printing Tutorial for GDI+ screen to Single Page Pin
Richard MacCutchan29-May-14 22:17
mveRichard MacCutchan29-May-14 22:17 
GeneralRe: Needed: Printing Tutorial for GDI+ screen to Single Page Pin
Austin_Cpp29-May-14 23:33
Austin_Cpp29-May-14 23:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.