Click here to Skip to main content
15,890,579 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: OpenGL rendering on desktop Pin
parths22-Dec-10 22:28
parths22-Dec-10 22:28 
GeneralRe: OpenGL rendering on desktop Pin
Tcpip200524-Dec-10 2:06
Tcpip200524-Dec-10 2:06 
AnswerRe: OpenGL rendering on desktop Pin
Drew Stainton30-Dec-10 12:46
Drew Stainton30-Dec-10 12:46 
GeneralRe: OpenGL rendering on desktop Pin
Tcpip200531-Dec-10 17:51
Tcpip200531-Dec-10 17:51 
Questiontransparently blit a bitmap Pin
mike7521413-Dec-10 9:01
mike7521413-Dec-10 9:01 
AnswerRe: transparently blit a bitmap Pin
LunaticFringe13-Dec-10 12:00
LunaticFringe13-Dec-10 12:00 
AnswerRe: transparently blit a bitmap Pin
jk chan27-Dec-10 1:00
jk chan27-Dec-10 1:00 
QuestionGraphics.FillPath( Brush, GraphicsPath ) does not fill a simple Path. Pin
WDI28-Oct-10 2:47
WDI28-Oct-10 2:47 
I think this problem occurs because of x and y of points because when I change the points, the shape will fill correctly.

Here is the code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace FillTriangle
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            Graphics g = e.Graphics;
            
            GraphicsPath gp = new GraphicsPath(FillMode.Winding);
            
            gp.AddLine(new PointF(290, 170),new PointF(98, 128));

            gp.AddLine(new PointF(110, 170), new PointF(290, 170));

            gp.AddLine(new PointF(110, 170), new PointF(98, 128));

            g.FillPath(new SolidBrush(Color.Red), gp);
        }
    }
}

AnswerRe: Graphics.FillPath( Brush, GraphicsPath ) does not fill a simple Path. Pin
RaviRanjanKr13-Dec-10 18:49
professionalRaviRanjanKr13-Dec-10 18:49 
Questiontool for real time graph plotting.. Pin
jainiraj27-Oct-10 1:21
jainiraj27-Oct-10 1:21 
AnswerCross Post! Pin
Henry Minute27-Oct-10 1:41
Henry Minute27-Oct-10 1:41 
GeneralRe: Cross Post! Pin
jainiraj27-Oct-10 4:18
jainiraj27-Oct-10 4:18 
GeneralRe: Cross Post! Pin
Richard MacCutchan27-Oct-10 5:37
mveRichard MacCutchan27-Oct-10 5:37 
QuestionTRUE == FALSE in GDI: Another rtfm? Pin
Tadeusz Westawic22-Oct-10 3:37
Tadeusz Westawic22-Oct-10 3:37 
QuestionFreeing Selected BM from DC in GDI Pin
Tadeusz Westawic17-Oct-10 17:32
Tadeusz Westawic17-Oct-10 17:32 
AnswerRe: Freeing Selected BM from DC in GDI Pin
LunaticFringe17-Oct-10 18:00
LunaticFringe17-Oct-10 18:00 
GeneralRe: Freeing Selected BM from DC in GDI Pin
Tadeusz Westawic17-Oct-10 18:32
Tadeusz Westawic17-Oct-10 18:32 
GeneralRe: Freeing Selected BM from DC in GDI Pin
LunaticFringe18-Oct-10 6:29
LunaticFringe18-Oct-10 6:29 
AnswerRe: Freeing Selected BM from DC in GDI Pin
Sauro Viti18-Oct-10 7:56
professionalSauro Viti18-Oct-10 7:56 
GeneralRe: Freeing Selected BM from DC in GDI Pin
Tadeusz Westawic19-Oct-10 2:56
Tadeusz Westawic19-Oct-10 2:56 
Questionhow can the diffrent DC share the same OpenGL List? Pin
King Tran5-Oct-10 13:47
King Tran5-Oct-10 13:47 
AnswerRe: how can the diffrent DC share the same OpenGL List? Pin
Peter_in_27805-Oct-10 14:32
professionalPeter_in_27805-Oct-10 14:32 
AnswerRe: how can the diffrent DC share the same OpenGL List? Pin
jk chan27-Dec-10 1:06
jk chan27-Dec-10 1:06 
Questiondiffrent DC share the same OpenGL list Pin
King Tran26-Sep-10 3:52
King Tran26-Sep-10 3:52 
AnswerRe: diffrent DC share the same OpenGL list Pin
Sauro Viti18-Oct-10 7:43
professionalSauro Viti18-Oct-10 7:43 

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.