For anyone interested in graphics [this site](https://gincker.com/) looks interesting.

Member Avatar
Member Avatar
+0 forum 3

Hey. Any ideas on how I can apply a given text on a certain 2D object, so the text would follow the object shape? Imagine we have this object: http://prntscr.com/gmdv9w I want to be able to type some text in a textbox and have the plugin automatically place in on the marked area. Let me say that I don't even remotely know how can that be done, although I can work something out if you point me in the right direction. This should preferably be done in JavaScript. If you need any more details, let me know. Thanks!

Member Avatar
Member Avatar
+0 forum 2

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 links (one in each direction). However, those two links are independent - eg one may be available but the other not available. That's what I'm having difficulty displaying. I have the x,y coords of each node, so for each link I have the x,y of its start and end points. …

Member Avatar
Member Avatar
+0 forum 14

Hola people :D So now that my holidays have begun... I'm bored :P I have decided to make random stuff with Java. So till now I have upgraded my checkers game (added high scores, color 'themes' for the board, etc.), made a music player kind of thing (used JFileChooser and then played the audio), made a simple dice rolling program, made a program to give the user the digital root of a number, the fibinacci sequence, factorials, etc. NOW I am completely bored until I learn what 12th grade has to offer. Seeing that I cannot learn it by myself, …

Member Avatar
Member Avatar
+0 forum 2

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( e.Graphics, RectangleToClient( new System.Drawing.Rectangle(checkBox1.Left -3, checkBox1.Top -3, checkBox1.ClientRectangle.Width + 6, checkBox1.ClientRectangle.Height + 6)), System.Drawing.Color.Red, ButtonBorderStyle.Solid); } } I'd appreciate any advice regarding what I might be doing wrong or missing. Thank you for reading.

Member Avatar
Member Avatar
+0 forum 4

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 not require the installation of any dll's or so's. Ideally I would want the library to be extremely light-weight and fast. I do not require 3D rendering capabilities, nor advanced windowing options. Does such a library exist?

Member Avatar
Member Avatar
+0 forum 3

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, 137.5, 49, 150, 49); g2.draw(earLeft1); QuadCurve2D earLeft2 = new QuadCurve2D.Double(150, 49, 156.25, 49, 200, 100); g2.draw(earLeft2); QuadCurve2D betweenEars = new QuadCurve2D.Double(200, 100, 237.5, 88, 262.5, 87.5); g2.draw(betweenEars); QuadCurve2D earRight1 = new QuadCurve2D.Double(262.5, 87.5, 287.5, 25, 300, 25); g2.draw(earRight1); QuadCurve2D earRight2 = new QuadCurve2D.Double(300, 25, 312.5, 25, 337.5, 137.5); g2.draw(earRight2); CubicCurve2D …

Member Avatar
Member Avatar
+0 forum 2

(I’m pretty desperate to fix this thing, so I’m going to try to be as thorough as possible) Before the problem occurred (this may not be important, but just in case): I took my hard drive out to hook it up as a slave (for storage) to a different computer. A new user account was made. Initially: I hooked the hard drive back up (and the few other things I had to unhook to get to the hard drive when I was taking it out originally) to the computer it was in first. I may have switched some power supply …

Member Avatar
Member Avatar
+0 forum 17

I'm painting a grid on the JPanel and trying to scroll the grid with a JScrollPane. I have a feeling the scrollpane is getting the actual size of the panel, instead of the size including what is not being shown. Something along those lines at least, I can't quite wrap my head around the problem which is why I can't figure it out. Here's the JPanel class that actually get's painted on. /** * Created by GeoDoX on 2015-03-16. */ public class GridPanel extends JPanel { private Tile[][] tiles; private int width, height; private double scale; public GridPanel(int width, int …

Member Avatar
Member Avatar
+0 forum 7

I am new to Dev C++ and i am creating a program of a game of snake. In Dev C++ the graphics open in WINDOWS BGI screen whereas the text gets shown in Text console(Dos). 1)i want to know how can i clear the WINDOWS BGI screen ? 2)how can i Close WINDOWS BGI screen so as to return to the text console? [CODE]#include<iostream> #include<graphics.h> #include<dos.h> #include<stdlib.h> #include<stdio.h> using namespace std; int snake(int); int main() { cout<<"WELCOME TO SNAKE WORLD\n PRESENTED BY PRABHJIT,RUHI AND SAURAV OF CS-11"; cout<<" RULES FOR THE GAME"; cout<<"KEYS---\n w- FORWARD\n a- LEFT TURN\n d- RIGHT …

Member Avatar
Member Avatar
+0 forum 5

Hi, Does this old motherboard of my friend supports Pixel Shader version 3.0 and Vertex Shader version 3.0. The Board is:**Intel 946GZ Express Chipset Family** Reply as soon as possible. Thanks,uxama

Member Avatar
Member Avatar
+0 forum 2

I want to make new string to show under the first ("Verificiranje na akauntot !") text but i dont know what to do in the "jLabel3MouseClicked" class, please help me how do i paint the graphic after i press the label ? here is some code: @Override public void paint(final Graphics g) { super.paint(g); Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Font font = new Font("Serif", Font.PLAIN, 17); g2.setFont(font); g2.setColor(Color.GREEN); g2.drawString("Verificiranje na akauntot !", 20, 130); } private void jLabel3MouseClicked(java.awt.event.MouseEvent evt) { // what should i do here ? }

Member Avatar
Member Avatar
+0 forum 11

NOTE: The games GUI is not fully implemented, so changing it's image and difficulty is done manually in the Button.Click Event NOTE: Whether you download the VS2013 source file or copy and paste the code, you need to download, and extract the two image files to the project's "Bin\Debug" directory. If you copy and paste the source ensure your form has the following controls: Button (Button1) PictureBox (Name:pbGameBoard, Width:792, Height:792) # THE GAME # This is a fun example using graphics. It is a representation of the classic tile slide game, where you slide the tiles around to make the …

Member Avatar
Member Avatar
+1 forum 1

Hello i have a little problem over here im trying to make a mouse listener and on mouse click the ball to come to the mouse pointer... i have maked a small "game" which is not bunch of confusing code... i have maked the ball to be controlled by the keyboard arrows but i want to use the mouse too, so when ill click somewhere in the area the ball to come to the mouse, here is the code... package fungame; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.geom.Ellipse2D; import …

Member Avatar
Member Avatar
+0 forum 8

I have a Toshiba C850-P5010 notebook. Its a bit outdated and i wonder if i can increase its graphics performance. I had an on board 2gb ram which i have recently upgrade to 6gb. It has an intel HM76 chipset and i am currently running windows 7 ultimate 64 bit. The processor is intel B950 with integrated intel hd graphics but no dedicated gpu. I had read on intel website that the motherboard have a PCI Express 2.0 slot. So can i install a graphics card in my notebook? And if yes then please suggest me some of them. Thanks …

Member Avatar
Member Avatar
+0 forum 1

This is my first try with turtle graphics in Python. It is in fact a sort of "translation" from some old LOGO code. When you run it, this should be the result: ![dbf0a4f76975c5cc4dee5df30139f144](/attachments/small/1/dbf0a4f76975c5cc4dee5df30139f144.png "align-left") Insiders can perhaps play the "Dark side of the moon" record by Pink Floyd :) Any comments (good or bad) on my code are more than welcome.

Member Avatar
Member Avatar
+3 forum 8

I have a c++ game that i made and i was wondering how i would make it so that i could add graphics, or just use the same basic concept of the game and just put those into a fresh game that i make with graphics. well my question is what is the best program, or way to do this for someone that's never made one with graphics before.

Member Avatar
Member Avatar
+0 forum 16

I would like to draw a graph (on a PictureBox) using Graphics in VB.net The input values are added over some time which need to be presented as graph. But the problem I am facing is, I need to draw the entire graph from scratch every time a new point is defined. I know, this requires persisting the existing image. But that only allows redrawing the graphics, but not to make incremental changes (on the image) over time.

Member Avatar
Member Avatar
+0 forum 6

I wrote a simple prog. for drawing a circle . Compiled it .. n THERE WAS NO ERROR. But at the Execution time Error Occured : BGI ERROR: Graphics not intialized use 'initgraph I used initgraph olready . [B]1.[/B]Then i copied EVAVGA.BGI from BGI to BIN.. i tried again .. n a new ERROR on RUN TIME . This system soes not support Full screen mode. Close to quit or smthing. [B]2. [/B]I gave the complete path in the initgraph .. ie: [B][COLOR="Red"]int a=DETECT,b; initgraph(&a,&b,"c:\TC\BIN");[/COLOR][/B] still the result was same . Plzz help me if ne one can . I …

Member Avatar
Member Avatar
+0 forum 6

My university's TA helped me setup all the necessary files to run OpenGL on vs 2008 (even though his .cpp and .h files were written in vs2013) yet when I compile the project, it gives me a white window. The same code will display a 3d mouse in the computer lab, so I am very lost. There were no compiling problems. Has anyone ever experienced this before?

Member Avatar
Member Avatar
+0 forum 1

Can anyone please tell me how to use the built in graphics in c++.Is there any tutorial on this?Which graphics will be suitable for using in c++?If there is any tutorial on this,please give the link. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 8

Can anyone tell me which graphics library will be suitable for using in C++. I am new in C++. if there is any suitable library, please give me a tutorial link on that. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 3

I combined mouse events o move my drawn rectangle object. Everything was fine i could move it and when i released the mouse button it stopped moving and settled down. However after rotating that object and then trying to move it around I just could not perform the action again. I have used the ResetTransform method at the end but this didn't help eihter. I have an alternative way for this but i would like to stick with that(above mentioned). Any sugestions what's going on behind the graphic scene and why i m unable to move my rectangle when rotation …

Member Avatar
Member Avatar
+0 forum 7

Hello, Unfortunately I learnt OpenGL from NeHe tutorials, which means that all of my current methods for OpenGL-ing are extremely deprecated. I tried to find a more up-to-date tutorial, but all they seem to do is teach how to get really complicated stuff out of OpenGL. I just want to know: What is the current method of drawing 3D triangles with either coloured or textured vertices to the screen? I know how to use the simple: glBegin(GL_TRIANGLES); //Draw a colourful triangle: glNormal3f(nx,ny,nz);//where nx,ny,nz are calculated based on the vertices glColour3b(a,b,c);//I usually use a preprocessor to allow my canadian spelling glVertex3f(a,b,c); …

Member Avatar
+0 forum 0

Apart from a few small programs written for fun several years ago, it is about 15 years since I wrote any software. However, I have had some visual images in my head for many years, so I am going to write software to bring them into reality, so I can share them with others. I hope they will be useful to mathematics students and entertaining to many people, perhaps as screen savers. It is a bit daunting … basic programming skills are the same, but everything is faster and more complicated.

Member Avatar
Member Avatar
+0 forum 2

Dear i want to make a program i which when Pressed UP Arrow key cicle start moving up and when pressed DOWM key circle moves Downword Similarly left and right i have draw circle and also implements Key Listner and can anyone give me ideo how i do this task here is my code. import java.awt.Graphics; import javax.swing.JFrame; import java.awt.event.KeyListener; import java.awt.event.KeyEvent; class MovingBalls extends JFrame implements KeyListener { public MovingBalls() { setTitle(":: Move ball With Keyboard Input ::"); setVisible(true); setBounds(100,100,500,500); setDefaultCloseOperation(EXIT_ON_CLOSE); } public void paint(Graphics g){ g.drawOval(40, 40, 60, 60); g.fillOval(40, 40, 60, 60); g.addKeyListener(this); } public void keyPressed(KeyEvent …

Member Avatar
Member Avatar
+0 forum 7

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 my main class.

Member Avatar
Member Avatar
+0 forum 2

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++){ if(i!=j){ //System.out.print("Enter weight of "+(i+1)+" to "+(j+1)+":=>"); weight[i][j]=1+r.nextInt(100); } } } System.out.println(); System.out.println("Starting node assumed to be node 1."); eval(); } public int DIST(int currentNode,int inputSet[],int setSize){ if(setSize==0) return weight[currentNode][0]; int min=INF,minindex=0; int setToBePassedOnToNextCallOfDIST[]=new int[n-1]; for(int i=0;i<setSize;i++){ int k=0;//initialise new set for(int j=0;j<setSize;j++){ if(inputSet[i]!=inputSet[j]) setToBePassedOnToNextCallOfDIST[k++]=inputSet[j]; } int temp=DIST(inputSet[i],setToBePassedOnToNextCallOfDIST,setSize-1); if((weight[currentNode][inputSet[i]]+temp) < …

Member Avatar
Member Avatar
+0 forum 8

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 Graphics memory of 1 GB.(I am a Gamerguy:-P). Then to RAM of 2GB(for the support of game purpose). Friends, I want some suggestions from you, regarding what brand I should go for and which is best. Can the geeks in this forum help me? Thanks in advance...:-D

Member Avatar
Member Avatar
+0 forum 23

Hi, I am planning to build a budget gaming PC with the price limit of roughly £400. I have found a group of components that add up to make roughly £350 and I was wondering whether these components are worth there money, if it will be good enough to play games well on medium graphic settings and what needs upgrading for future proofing. The aim is to build a cheap PC and as o gain more money I can buy better components as the next gen comes out. Here are the components minus the PSU: http://uk.pcpartpicker.com/part/western-digital-internal-hard-drive-wd10ezrx http://uk.pcpartpicker.com/part/patriot-memory-psd34g13332s http://uk.pcpartpicker.com/part/asus-motherboard-f2a85vpro http://uk.pcpartpicker.com/part/amd-cpu-ad641xwngxbox http://uk.pcpartpicker.com/part/asus-video-card-gtx650e2gd5

Member Avatar
Member Avatar
+0 forum 1

The End.