47 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for JamesCherrill

Hi Guys. This is a seemingly simple problem that's got me stuck, so I'd be very grateful for any ideas you can offer. I'm working on a program that has to display fixed nodes and the links between them. The links are uni-directional, but often pairs of nodes have two …

Member Avatar for ddanbe
0
514
Member Avatar for Suzie999

I'm trying to draw a border around some controls in order to highlight them, but I'm getting unexpected behaviour, in that nothing is drawn. Here is a current event method. I've tried a few variations. private void checkBox1_Paint(object sender, PaintEventArgs e) { if (statechanged) { //Debug.WriteLine(checkBox1.Checked.ToString()); statechanged = false; ControlPaint.DrawBorder( …

Member Avatar for Suzie999
0
2K
Member Avatar for Labdabeta

Hi. I am familiar with the following C graphics libraries: Cairo, SDL, SDL2, and OpenGL. The problem I have found with these is that they either require shared libraries (Cairo/SDL/SDL2) or are difficult to make cross-platform (OpenGL). I am wondering if there are any graphics libraries for C that do …

Member Avatar for gusano79
0
2K
Member Avatar for pars99

I need to fill an image created using a ton of QuadCurves, but they don't fill it all the way using the traditional fill method. Any suggestions? public class MonstercatComponent extends JComponent{ public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; drawGrid(g2); g2.setStroke(new BasicStroke(5)); QuadCurve2D earLeft1 = new QuadCurve2D.Double(145, 155, …

Member Avatar for mKorbel
0
379
Member Avatar for castajiz_2

I have a method which does something. However to do the desired thing i must call the CreateGraphics method. I Created a new class (added a new class) and now inside my method i can t call this method. What am i missing? I can call the CreateGraphics method inside …

Member Avatar for castajiz_2
0
192
Member Avatar for kal_crazy

This is the code that I have done so far: import java.util.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; class TSP extends JPanel{ int weight[][],n,tour[],optDist; final int INF=1000; public TSP(){ Scanner s=new Scanner(System.in); Random r = new Random(); System.out.println("Enter no. of Cities:=>"); n=s.nextInt(); weight=new int[n][n]; tour=new int[n-1]; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ …

Member Avatar for kal_crazy
0
1K
Member Avatar for ss125

Hello friends, I am having a HCL PC in my home with configuration of 120GB HDD, basic graphics memory, Core2Duo processor and with 1 gb of RAM. Now I am planning to do some upgrades to it. First of all, I am planning on DVD writer(already out). Then to the …

Member Avatar for mayaestat
0
327
Member Avatar for ahmzy

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.Xml; using System.IO; namespace Enrolement { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { /* This part of my code imports the …

Member Avatar for ahmzy
0
1K
Member Avatar for Begginnerdev

Upon playing with the graphics/random class - I have discovered something odd. Private Sub Me_Load(sender As Object, e As EventArgs) Handles Me.Load For i = 0 To 5000 DrawColor(GimmiRectangle) Next End Sub Private Sub DrawColor(ByVal rNew As Rectangle) Try Dim g As Graphics = Me.CreateGraphics g.DrawRectangle(New Pen(Color.FromArgb(New Random().Next(255), New Random().Next(255), …

Member Avatar for Begginnerdev
0
217
Member Avatar for Bchandaria

error is coming while linking the file error is undefined symbol _clearviewport in module ... i have used graphics.h library function dos.h and also stdlib.h can any one help me out to identify this problem?

Member Avatar for deceptikon
0
135
Member Avatar for kanonno.earhart.56

Hi guys! I'm not computer savvy and need your help and suggestions. And what do you think about my PC? Is it like really old? CPU-Z TXT Report ------------------------------------------------------------------------- Binaries ------------------------------------------------------------------------- CPU-Z version 1.61.2 Processors ------------------------------------------------------------------------- Number of processors 1 Number of threads 2 APICs ------------------------------------------------------------------------- Processor 0 -- Core …

Member Avatar for caperjack
0
373
Member Avatar for broj1

Hi all I would like to display several charts on a webpage. I have designed a class that would draw each chart using GD and based on data set by a public method. Unfortunately instead of charts being drawn I get an error message: The image ... cannot be displayed …

Member Avatar for broj1
0
227
Member Avatar for davi0011

I'm curious because I'm new to the world of buying computer parts and such. I've installed an Asus model of the Nvidia 550ti and I was wondering if I should use the Nvidia drivers or the Asus drivers. both drivers seem to work with only slight differences in the multiple …

Member Avatar for davi0011
0
255
Member Avatar for RiddoKun

I recently installed windows 7 on an windows XP Intel Centrino. Ever since then I can't play my games like grand chase due to the fact that I now have a standard VGA graphic driver. Also when I go to DXDIAG I found that my computer is a Intel(R) Pentium(R) …

Member Avatar for caperjack
0
142
Member Avatar for ggeoff

Hi I have two desktops one has Office 2003 and the other my "graphics and video PC" has Adobe Creative Suite 3 Design Premium. Both use XP Pro. I can't use Adobe Acrobat as MS Word is installed on my other PC. There are a few other issues, that lead …

Member Avatar for ggeoff
0
349
Member Avatar for tr4nquility

I would like to build a simple highlighter program. The idea is to set an image to change the cursor so that it will look like a highlighter. And then, when we move the cursor, it will trace a line along with our movement. The requirement here is to be …

Member Avatar for tr4nquility
0
902
Member Avatar for Basteon

So, I need to make a program that draws a [URL="http://en.wikipedia.org/wiki/Automata_theory"]finite automata[/URL] from the input data. I had some experience with the [I]graphics.h[/I] header but as far as I know it's a Borland only header and VC++ doesn't support it. So I was wondering, is there a way to draw …

Member Avatar for sathishraji
0
1K
Member Avatar for StephNicolaou

Hey guys, I've drawn a grid, and I have a label contatining a picture. Whenever I change the location of this label, the grid dissapears until I resize/move the frame. Any suggestions on best method to buffer these grid lines? They aren't going to be moving graphics or anything like …

Member Avatar for StephNicolaou
0
150
Member Avatar for pangloss

Hi there, My computer has been working fine until this morning when it froze shortly after logging into Windows (mouse/keyboard unresponsive and frozen display etc). I switched the computer off and on again, and from this point my monitor has been displaying a 'no signal' message when the machine is …

Member Avatar for pangloss
0
238
Member Avatar for Bobonoinc

I am new to Java and as an exercise I am trying to develop the following: 2 JPanels on a JFrame where 1 of the JPanels can be used for drawing. I started from an example from Daniweb from 2010 but can't seem to get a graphic context because the …

Member Avatar for Bobonoinc
0
1K
Member Avatar for Srin

My panel's paintcomponent method draws a line based on the initial click and the current position as the mouse is dragged. Releasing the mouse leaves one line from the mouse press location to the mouse released location. The problem is. on the next click/drag, the old line disappears when the …

Member Avatar for Srin
0
1K
Member Avatar for teo236

I want to redraw a JPanel while my program is running. Here's a fragment of my code: [CODE]public class Graph extends JPanel{ public void redrawSomething() { getGraphics().drawRect(15, 5, 20, 5); repaint(); }[/CODE] I tried to call "redrawSomething" but nothing happend. How do I fix it? Is something wrong?

Member Avatar for teo236
0
235
Member Avatar for GerryD

Hi all any advise would be appreciated, I upgraded my Gateway 524GB Desktop some time ago with a PNY Nvidia GeForce 7400GS 128MB 128-bit GDDR2 AGP 4X/8X Video Card for better performance. But it appears knackered so I'm getting a new one, the problem is I can't use the in-built …

Member Avatar for GerryD
0
247
Member Avatar for 24x24

I wasn't sure if this should go in games development or here but it's java so I put it here. This is homework so please don't write my code for me. My assignment is to create a game. It has to have moving parts, keyboard controls, buttons, the works. I …

Member Avatar for 24x24
0
372
Member Avatar for ashwinshenoy

Hi Guys, I have developed a program which continuously draws a circle using a timer. Now every time the circle gets displays it flickers and which is because i have used me.refresh. Is there any other way to avoid this flickering. here is my code [CODE]Private Sub Timer1_Tick(ByVal sender As …

Member Avatar for Unhnd_Exception
0
3K
Member Avatar for ashwinshenoy

Hi Guys, i have this code which draws a continuous circle using a timer. Now I have to display it in the form which has a group box with loads of other fields and information. Now can anyone please tell me how can i add the circle into the group …

Member Avatar for ashwinshenoy
0
250
Member Avatar for jackmaverick1

Hi, I'd like to learn some basic graphics (2D) that would be easy to use and quick (So no OpenGL, or Direct X). Also, it NEEDs to have Linux portability. I've already tried Allegro and paintlib, neither of them could I install and they didn't look quite as easy as …

Member Avatar for jackmaverick1
0
153
Member Avatar for ThatGuy2244

I'm trying to make some code that directly interfaces with the VGA card(in real mode), I know the ports(0x3c6, 0x3c7, 0x3c8, 0x3c9) I need to use to output data on the screen. My code is this: [CODE] mov ax, 0 out 0x3c8, ax ;plot pixel at location 0 mov ax, …

Member Avatar for ThatGuy2244
0
786
Member Avatar for patrickgormally

Hi! I am trying to do a project in which I draw a Christmas tree with about 3 segments, filled in with color and with writing below it saying "Merry Christmas". Sadly, I have no idea where to being! I'm able to draw the Christmas trees using stars by defining …

Member Avatar for woooee
0
3K
Member Avatar for choover12

Is there a way i can create 3D graphics in c#? is there an API out there, built into c# or would i have to make my own? here is how i can create a cube [CODE] void drawcube(Pen mypen, Rectangle rect1, int size){ Rectangle rect2 = new Rectangle(rect1.X + …

Member Avatar for ddanbe
0
226

The End.