37 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for Stefce

Am trying to draw three circles on the page but nothing shows up, anyone can tell me what is wrong here? <body> <canvas id="myCircle(3)" width="60" height="60"> Your browser does not support JavaScript, please update it before you continue</canvas> <script type="text/javascript"> function myCircle(myCircle) { var c = document.getElementById("myCircle"); var ctx = …

Member Avatar for anand9796
0
3K
Member Avatar for sallubhai

Hi I wanted to draw a field like this photo which I have attached. I would appreciate your help. I have wrote so much now: for (int x = 2; x < 12; x++) { for (int y = 2; y <= 12; y++) { g.drawRect(40*x, 40*y, 40, 40); } …

Member Avatar for JamesCherrill
0
299
Member Avatar for 2384443

Hi everyone, i need your help.. I want to draw a circle,square and rectangle on Jframe on a click of a button.. This program was asked in my test paper, i couldn't get it right though bt i wanna know what my mistake is.. Plz help me.. import javax.swing.*; import …

Member Avatar for JamesCherrill
0
340
Member Avatar for Yogesh_5

how to draw 2 parallel line in visual baisc 6.0 which have same height.. suppose picture box height is 200 then first line starting cordinate is 0,100 and second line cordinate is 100,200.. how we draw..

Member Avatar for JobPencil
0
464
Member Avatar for sujan.dasmahapa

I am writing a pure C based win32 applications. I have drawn line. Now i want to translate that line, move the line whereved user wants to move on screen. Then again I drawn another line, I am drawing multiple lines. I have created rectangle region for each line and …

Member Avatar for Ancient Dragon
0
348
Member Avatar for vinodvinu

Hithere, I need to take 12v DC from my computer to feed an amplifier. I know there is some red and black wires . But my question is 1.) is there enough current to feed my amplifier( may be 2 or 3 A). 2.) is there any problem to my …

Member Avatar for Rik_
0
180
Member Avatar for siga

Hi, I am given this assignment that should be run in Jython. The assignment says that the program consists of a Java application with a canvas and a textarea for turtle code. I need to create a Jython application that takes turtle code from the Java application, parses it with …

Member Avatar for vegaseat
0
929
Member Avatar for boiishuvo

I have one problem at the line 20-23. What I need is when the blue box touches the red rectangle, the blue box gets resetted (it goes back to where it starts). However, the problem is, it doesn't touch the red rectangle area properly. Any suggestions? Thanks in advance. float …

Member Avatar for margaret224
0
318
Member Avatar for Doogledude123

Hey guys, I need a function that reads a text file and stores the character someway, (I am assuming a 2D Array would be best?) then a function that reads through the characters and if the char is something specific (like "X") then it would draw a square (QUAD) 10wx10h …

Member Avatar for Doogledude123
0
370
Member Avatar for rem2

Hi there I'm making a project to show how some of algorithms work. Basically i needed to show some drawing pixel by pixel. I made the code below and tried to run it <script> function init() { var paper = Raphael(10, 50, 800, 600); var arr = []; var j …

Member Avatar for rem2
0
212
Member Avatar for k-nat
Member Avatar for ysmtek

*Hello people of the DaniWebs! It's been a long time since I've been talking and asking here, under the name of **katmai539**. I've lost account information and also the email address linked to it. I haven't been active in the software development-branch for the past few years but recently I …

0
221
Member Avatar for dantheman4

public static void drawIndentedLine (int spaces, String begin, int n, String middle, String end) It should print a single line, terminated with a newline, that begins with the specified number of spaces, followed by the begin string, followed by n copies of the middle string, followed by the end string. …

Member Avatar for NormR1
0
184
Member Avatar for dantheman4

package cs1410; import javax.swing.*; public class P2 { public static void main(String []args) { drawDiamond(); } public static void drawDiamond() { int x,y,z; int a=1; String out="\n"; int i=Integer.parseInt(JOptionPane.showInputDialog("Enter your size")); if((i%2)!=0) { int in=(i/2)+(i%2); int bb=in-1; int b=bb+(bb-1); for(x=in;x>0;x--) { for(y=x;y>1;y--) out+=" "; for(z=0;z<a;z++) out+="*"; a+=2; out+="\n"; } for(x=0;x<in-1;x++) …

Member Avatar for JamesCherrill
0
234
Member Avatar for dantheman4

I am supposed to use this method public static void drawIndentedLine (int spaces, String begin, int n, String middle, String end) This is what I am suppsed to do **It should print a single line, terminated with a newline, that begins with the specified number of spaces, followed by the …

Member Avatar for dantheman4
0
349
Member Avatar for GTech4life

Can someone help me with the code for this assignment i have for school using dr java > Project Assignment:Write a method drawFace() which will draw a face on the picture. Your face should have eyes, mouth and text beneath it that provides it with a name.

Member Avatar for NormR1
0
307
Member Avatar for GTech4life

Can someone please help me "write a drawTree method for the Turtle class" I am given the following information: World w = new World(); Turtle t = newTurtle (320, 480, w); The turtle will begin at the middle of the bottom of the World, facing North. Use the drawRectangle method …

Member Avatar for NormR1
-1
217
Member Avatar for Akay2

Well i have a little problem here is the code [CODE] using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Media; namespace RockRaidersRecreation { /// Manager for Drawing Verts public class WallDrawManager : DrawableGameComponent { Texture2D wallTexture; BasicEffect basicEffect; Vector3 …

0
197
Member Avatar for OblibSystems

Basically im trying to make a game where shapes fall from the sky and the user controls the sprite to avoid them. I have it working but only with 1 block falling at a time. I am using the paint method to draw my shapes. I was wondering how to …

Member Avatar for the_carpenter
0
223
Member Avatar for walid86

hi, i have a panel with controls and richtextbox's within it. When the user clicks the save button, i take panel1 and DrawToBitmap, then add the image to a pdf created using abcPDF7. My problem is that i have recently change textbox's with richTextBox's to enable the user more functionality, …

Member Avatar for walid86
0
358
Member Avatar for J-Dub

I am trying to load a background in full screen mode, but when i run my program the screen is just white. Can someone point me to the reason why? [CODE]import java.awt.*; import javax.swing.*; public class DrawComponents { GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice device = env.getDefaultScreenDevice(); GraphicsConfiguration gc = device.getDefaultConfiguration(); …

Member Avatar for sirlink99
0
250
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 turt2live

Hello, I currently have this code to buffer an image: [CODE] public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; ImageIcon icon = new ImageIcon("back.gif"); Image image = icon.getImage(); BufferedImage buff = new BufferedImage(image.getWidth(this), image.getHeight(this), BufferedImage.TYPE_INT_ARGB); Graphics2D b = (Graphics2D) buff.createGraphics(); b.drawImage(image,imgX,imgY,this); b.setColor(Color.BLUE); b.fillRect((window.getWidth()/2)-13, (window.getHeight()/2)-13, 26, 26); g2.drawImage(buff, 0, 0, …

Member Avatar for turt2live
0
263
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 Mike Askew

My project I am working on is a product location system for a large supermarket. My current issue is that the map I am using to display the product location is assembled from rectangle objects which I will then change the colour of when required. The array storing the locations …

Member Avatar for Mike Askew
0
208
Member Avatar for kazekagerandy

i am doing a makeup and hairstyle makeover application in vb.net and i dont know if i can directly edit a photo in a picture box, the features of the project will be: 1. make-up features are a must. 2. it should save the original photo uploaded and the edited …

Member Avatar for kazekagerandy
0
3K
Member Avatar for Taimoor Rana

Hello guys, I'm currently working on a project that simulates a projectile motion. So far I'm preparing the flowchart of the program. I'm stuck when it comes to designing the path([B]2D Line[/B]) of the projectile Motion. So my question is, what fields,methods my class need in order to draw (in …

0
174
Member Avatar for Pundia

Hi everyone, I'm in this proyect where I need an area in the form where I can place just dots, then join these dots with an straight line between them. How can I do that? I placed a Picturebox to see functions there but nothing is clear. Any help would …

Member Avatar for codeorder
0
213
Member Avatar for ITStrawberry

Hello guys, Can someone help me? I have a scanned document in my system. It's a tiff file. You will see below the code i have written. The problem is that i get an error message. The message is like this "A Graphics object cannot be created from an image …

Member Avatar for codeorder
0
133
Member Avatar for Kieran Y5

Hi, I am working on a way to draw a graph with AS3. I have just put my code into different classes. I have a function that draws the graph axis but it doesn't seem to work properly. You will see what I mean in a min. [CODE] public function …

0
111

The End.