Dynamic Opacity Line Drawing?
Dec 12, 2011I am doing a project with graph (VB.NET). I am drawing a line handling dynamic property ( opacity changes based on DB value). I don't know how to change the opacity.
View 1 RepliesI am doing a project with graph (VB.NET). I am drawing a line handling dynamic property ( opacity changes based on DB value). I don't know how to change the opacity.
View 1 RepliesI would like to build a line chart which can redraw or change during a period of time with dynamic data. So that the x, y axis will change if out of range. The graph may be somehow similar to Matlab. I am using vs2005.
View 2 RepliesWhen I set the opacity of a form to 50%, the opacity of a label on that form is also set to 50%, but I do not want so, is there anyway to make a 100%-opacity-label with 50%-opacity-LabelBackground on a 50%-opacity-form?
View 6 RepliesThis is more of a mathematical problem than programming problem.I have created a very basic 3D engine using Visual Basic .Net. It displays lines on the screen with an additional z axis. The engine works, however when part of the line goes below 0 it messes up and starts drawing the line inverted again.
This is how it calculates the points:
y = (point.y / z) + offset.y + camera.y
x = (point.x / z) + offset.x + camera.x
Can anyone work out a way to only draw part of the line when it intersects the z=0 axis?
I have a form with a PNG image as its background image. How can I make the form's opacity match the opacity at different parts of the image? (for example, I have a drop shadow that fades from black to transparent. How do I acheive this effect on a form?)
View 9 RepliesHow can I set the Opasity of a form (not form1) down to 50% but leaving the Buttons and TextBoxes at 100% Opacity?
View 9 RepliesFrom the visual code requests as you can guess i think a good GUI is very important in an App. What i want is to lower the opacity of my textbox so u can see the SWF in the background, is this possible?
View 3 RepliesI am need to drag drop listboxes with connection line in vb.net. If the listbox move then connection line should also move. I have attached picture as wel
View 1 RepliesHow can you make a form invisible...but leave the picture box visible?
[Code]...
if i use
Dim Gr As Graphics = SomePanel.CreateGraphics()
Gr.Drawline(StartingPoint, EndingPoint)
I want to be able to have a line drawn from point a to b, but be able to rate it 90 degress based on user input so if the user inputs 70 I want it to rotate 30 degree's to simulate a 70 deg relationship to a horizontal line that it touches if that makes any sense. a is starting point b is the user inputs 70 and it draws it at 70 in relationship to the horizontal lineheres the image that i forgot to post above Attached image(s)
I was wondering if anyone could steer me to any good references to using OpenGL in vb.Net? I wanted to try a simple line drawing test to start off with, and came across many old discussions about using CsGl or the Tao Framework. But I could not get CsGL to import into Net2008 (the Add Reference window simply could not see the DLL that was clearly there when using Windows Explorer). And although I could get Tao to import OK, and found portions of one person's project, I figured that somehow the GL window he was referring to had to first be set up as a GL object (new class?).In addition, all the OpenGL books I have looked at only discuss OGL with respect to some version of C.From what I have gathered, you need a connector between vb.Net and the opengl32.dll libraries and that is what CsGL and Tao are about. But the edumucation resources seem very few.
View 13 Replieshow to draw in vb.net, and I figured the easiest way is to get my hands dirty and start coding. I figure that the best way to start is by drawing a line on the form. What I'm trying to do is use the graphics.drawline(), but I'm failing. This is what I'm using so far
[Code]...
I have a question about drawing lines. Most of the code snippets I've seen approach drawing a line with the mouse down as the startpoint and the mouse up as the endpoint. But I am trying to draw a line by startpoint as
a mouse click and then an endpoint as a mouse click just as you do on a typical cad program.
That's vertical and 1 pixel wide. This is for a mulitiprocessor performance monitor.How do I do it....if you tell me which routine to use... I'll take it from there. I don't think the routine is
System.Drawing.Graphics.DrawLine, because it's looks to an external reference like I'm putting random pixels in.If possible I need to put the pixels in by hand. Besides this line of pixeld is another line of pixels for another epoch. They are not related numrically.
My program is giving the error: "End of statement expected" The red lines are the ones giving errors. I'm trying to draw lines on a picturebox to create a graph
Dim iScale As Single
Const Distance = 1000
pictureBoxGraph.ForeColor = QBColor(0)
[Code]....
I'm using vb10.
Is it possible when drawing a line to use a binary pattern? Is there a command for this?
Example:
167 is 1010 0111
Draw a line X32 x Y1 would be: 10100111101001111010011110100111
205 is 1100 1101
Draw a line X32 x Y1 would be : 11001101110011011100110111001101
1's being pixels drawn and 0's not.
I have been working on an angle calculating program. I have incorprated a feature so you can type the angle and the program draw it. I have since added a few new features and updated everything as such. For the life of me I can't figure out why the draw angle has stoped working. let me just paste some code.
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
[Code]....
Right, the program isn't so complicated. The important bit is that you type an angle in textbox1 and hit enter. Then what happens is the angle is calculated against a base line (one of the new features is that this base line can be moved from left to right and center.) the problem occurs when you hit enter, the program doesnt actually draw the line for you.
How to increase a forms opacity without increasing the opacity of the controls in the form?
View 1 RepliesI'm writting program in VB 2010, but I have a problem. I want to draw a temporary line on PictureBox control MouseMove event. That works fine but deleting of that line doesn't work. I tried to draw the white line on the same coordinates (PictureBox's background is white), but won't work.
Here is the code: Private Sub drawing_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles drawing.MouseMove
[Code]...
Basically I want to Position a line from The middle of my screen to the bottom right of my screen. But I need to draw over the game to do this. I dont mind if it flickers as long as its there is all i want. Like this VV
View 4 RepliesI'm trying to make a very simple Silverlight application.I want it to be full-screen, and I want to draw a line onto a Canvas.My problem is that the .Width and .Height of the canvas never seem to have a valid value. The website shows the canvas at 400x300 pixels or so, and when you click on it, it goes into Fullscreen mode.I want to use the Height and Width to find the usable space of the screen. I've tried adding events (thinking that the canvas wasn't yet ready to be used immediate after the full-screen line of code) but the LayoutChanged and Resized events don't seem to yield anything.
View 1 RepliesBased on some calculation i will get the (x,y) coordinates of the points to be plotted. I need to draw a line graph based on these points. Which is the best and easiest way to do so?
View 2 RepliesI know how to do a simple graph on VS.I have a value in a textbox wich is updated every second and I need the chart to display that value on the chart every second with the last 5 values or so.
View 3 RepliesI want to change my controls opacity .I know how can i change the form opacity but I want to change the controls opacity without change the the form opacity , such as : "I want to set my form opacity = %100 and the button opacity = %50 " or "I want to set my form opacity = %50 and the button opacity = %100 " I'm using visual studio 2005 .net .I want to do that in basic language
View 3 RepliesProblem drawing dotted path lines, with even dots along the path line.I want to draw a path line that can be any shape (square, round, outline etc), and along this path line I want even dots to appear.
I also want to be able to resize the shape (as in the example attached)This is very easy to do using "DrawPath" and defining points for the path and using a pen defined as dots.The problem I have is I want the dots to be evenly placed along the path, on any shape or size I draw.In the example I have created, I create a square with 4 points and draw a dotted path.There are 2 buttons that allows me to resize the square (larger or smaller) this helps show the problem more clearly.
The path starts at the top left corner and finishes back at the top left corner, the dots are evenly placed along the path, except the final dots at the end of the path. (Sometimes the dots are even and other times they are not even).The shapes I want to draw can be any size and any shape, but I have used a square in this example to show the problem I have. point me in the direction I need to go that allows me to draw the dots and give the impression that they are even all along the path, for all shapes and sizes.
In the pictures below if you change the size of the shape, one will have even looking dots, the other will not.
[Code]...
draw individual pixels, without resorting to drawing a line and setting it's length to 1. Is there an actual ability to draw a pixel that is just 1 pixel big?
View 2 RepliesI need some code to draw a resizable, draggable rectangular cursor (or selection box) on a picturebox. I found some excellent code (albeit rather old) that does just that, but on a form rather than a picturebox. I have tried converting the code - basically moving things to the picturebox events (Paint, MouseDown, MouseMove etc). It nearly works but leaves a trail behind it when you move or resize the cursor. In other words, the selection rectangle is not being erased before being drawn in the new position.
Is there some fundamental difference between drawing graphics on a form and drawing on a picturebox that would cause this behaviour? Something like, when you invalidate a form and cause a redraw it erases what you did last? If not, then I just need to dig a bit further and work out how the cursor is being erased from the previous position.
Here's the original code that works fine on a form:
Private DragRect As New RectangleF(20, 20, 100, 80)
Private Adornments(7) As RectangleF
Private MouseInRect As Boolean = False
[Code]....
Say I have 3 Buttons, labelled: Unit 1, Unit 2 and Unit 3. When I click on any button I want a drawing of that unit to appear on screen at a pre-specified starting point. Thereafter when I press any other one of the buttons the unit drawings appear alongside each other in a line. So I could end up with:
[Code]...
With this line...
If PictureBox1.Image = My.Resources._2star Then
I get this error: Operator '=' is not defined for types 'System.Drawing.Image' and 'System.Drawing.Bitmap'.Is there another way to say = with images?
Is it possible to convert an object form System.Drawing.Graphics to System.Drawing.Image?
View 4 Replies