51 Discussion / Question Topics
Remove Filter
|
|
Hello i have a little problem with moving ball around screen, also i'm confused why i cannot put this variables `double x = 0, y = 16, muvx = 0, muvy = 0;` at the public class MainActivity to be local variables and also i don't know how to set … |
|
|
i am trying to draw an image on to a php page using the imagecreate function but the image is not showing, i cant see the problem with this code, please help me out, the code is as follows: <?php header('content-type: image/jpeg'); $fontSize = 30; $imageHeight = 40; $imageWidth = … |
Hello, I am struggling at trying to get custom fonts working in my application. I have added the font file to the project's resources via the 'Add Existing File...' option, and setup the following code... > FontFamily standard; Font wt; > [DllImport("gdi32.dll", ExactSpelling = true)] private static extern IntPtr AddFontMemResourceEx(IntPtr … |
|
Hello, This is the first time I've attempted creating controls at runtime, and I'm not sure why the following code isn't working; private void Popup_Load(object sender, EventArgs e) { Panel panel2 = new Panel(); panel2.Size = new Size(1280, 720); panel2.Location = new Point(20, 20); panel2.BackColor = Color.Red; this.Size = new … |
|
Hello everyone, I am attempting to make a custom control similar to a tooltip however I am not sure exactly how to produce the effect I desire. My goal is to have a popup, which is shown when the mouse hovers over a control, that contains some message and is … |
|
I have a panel where I am drawing images on button click. But on the second button click, the previously drawn image is being replaced by the new Image. void panel_Image_Paint(object sender, PaintEventArgs e) { if (Clipboard.ContainsImage()) { Point p1 = new Point(i, 0); e.Graphics.DrawImage(Clipboard.GetImage(), p1); i += img.Width; } … |
|
Hello, I am making a custom control which will serve as a "timeline". An integrated timer moves a line along the control to display where the time is currently. I am inheriting a Panel control for the timeline. When I draw my line, it constantly appears below the controls in … |
|
My application requires a dialog box and a parent window, from the window proc of the parent window I'm trying to draw on the dialog box. How might I do this? Thank you for reading :) |
|
**how to draw a line in c program given the slope and intercept of the line** |
|
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), … |
|
Hello :) i'm looking for a proper way of drawing points in MFC. or Drawing those point on a Drawn Eclipse. then i actually have to join them. i had been working on .NET, so i'm less fimiliar to visual C++ 6.0, but i have to use it for this. … |
|
I would like to create a notebook type application that will accept touch input and allow you to draw on the surface view. I'm unsure what I'm doing wrong since I have not programmed for the Android before. Here is what I have: [CODE]findViewById(R.id.pageSurface).setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, … |
|
Hello guys, So my task is the following: Draw a pine tree based on user inputted height. How tall should the tree be?: 6 /\ / \ / \ / \ / \ / \ ------------ || || || I had problems moving the cursor from the left to right … |
|
Hi, I wrote a drawing tool program by using vb6. I scans a big house plan (A3 size) and load many little pictures as the element of the house. The user can manipulate the house plan and saved it back. I used normal vb6 method to load and save the … |
|
[B]I was trying to create an application implementing the Douglas Peucker algorithm in VB.NET. I already finished coding the program and tried to compile it but when I try to draw on the form, it is not working. My source code is below, I just want to ask if there … |
|
Hi I want to khow about drawing methode in C# that has no dependence in pixel, do anyone can help me? I want to draw patterns and then print them, I can Draw them but when I want to print, I have Problems with measurments because I draw them pixel … |
|
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 … |
|
I want to draw a editable TextBox on top of picture box and the user is allowed to enter text into this box.After entering text the text box should disappear and the text entered should be painted to the picture in the picture box.Please help me on this,I'am doing this … |
|
:( Sorry the topic spelled incorrectly.. I can't edit it noe.. sorry for that Friends again need you so badly.. I'm developing my simple GIS application, actually here's what I developed so far.. [CODE] import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; … |
|
I m developing a java app that will have a GUI to draw the graph and implements the graph coloring algorithm to colour the nodes. I started with JFrame and Canvas and could draw lines and circles with paint() and repaint methods.. The problem is repaint method erases the previous … |
|
Hello I currently have a program that collects data from a txt file and then works out the averages of each column. What I am now trying to do is use this data to draw a line Graph for each individual column contained within the txt file. This is the … |
|
i am working on a virtual make-up software and the only thing i lack to totally finish it is the lipstick part. is there a way that i can trace the edges of the lips of the picture that im editing and fill its insides with colors from a colordialog … |
|
how can i draw a free-shape (it means no particular shape or sides) and fill it in with the colors chosen from colordialog? e.g. im gonna draw a rounded rectangle and i want to fill its insides with color red. answers will be appreciated :) |
|
Hello, I have written some java classes to generate a random network. The network is made of : 200 nodes . Each node has a maximum of 50 neighbors. What i want is to Randomly chose a node from that network and GRAPHICALLY show it with its one hop neighbors … |
|
I need a program for making flowcharts. I used to use OpenOffice Draw, but I'm looking for something else right now, preferably a stand-alone program or one that comes with little unrelated functions. It would be better if free ones are separated from paid ones. |
|
I need to draw sin(x)/x graphic into PictureBox in animation mode by timer component. I have axes already on my picBox and graphic draws from 0;0. Also I have some code from this forum, but there my graphic draws FROM RIGHT TO THE LEFT, and I need to draw it … |
|
Hi, I'm trying to expand an existing php-based project. I need to be able to allow users to create basic flow diagrams inside their web browser. Drag and drop environments with movement and resize abilities on a js canvas. Start blocks, information blocks (possible hyperlinks too), Decision Blocks, End Blocks, … |
|
Hi! I have a problem with SDL and OpenGL. I wrote a code to convert SDL Surfaces to OpenGL textures. Now I have a function to Draw a rect(with opengl) on a SDL_Surface. That's the code to draw a rect: [CODE] void DrawRect(SDL_Rect *rect, GLuint texture) { float x = … |
|
Hi all am a beginner in C# iam making a Drawing application the user will choose the x-y position , width ,hight , the shape and the color he want and then press the Draw button i coded the button and it work properly and draw the shape in the … |
|
Hello... I want to draw three straight lines on a form. Can you tell me if the following code is correct: [CODE]Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim Line1 As System.Drawing.Graphics Dim PenLine As New System.Drawing.Pen(System.Drawing.Color.Black) Line1 = Me.CreateGraphics Line1.DrawLine(PenLine, 0, 129, 529, 129) … |
The End.