VS 2008 Woodcutting Program / Draw Image & Save Cuts
Jan 27, 2010
I'm currently working on a VB 2008 course of Michael Halverson, and I'm stuck at an assignment where I'll have to expand a previous wood order program so customers can add woodcuts to their orderIn the newer program a customer can define 4 coordinates (x & y for startpoint and x & y for endingpoint), after clicking on the button 'Next cut' a line will be drawn on screen (in PanelCuts) with a maximum of ten lines. After finishing, the coordinates must be saved in the order.txt, and when the client re-select the order in the main order program, they can review and adjust / remove the already specified cuts.Right now I'm at the point that the you can enter the coordinates, and the line will be drawn.
- What's the best way to store the submitted cuts, in a Label? array? or something else?
- When the form reloads, how to displays all previous made cuts? Can i count the numer of cuts and with For i = 1 to combined with SelectedItem. Split() ? [code]
View 3 Replies
ADVERTISEMENT
Oct 21, 2011
Just wondering how if it is possible to draw onto something, with GDI+, that can then be saved to some kind of vector format?
View 2 Replies
Nov 16, 2009
I need to create a function which accepts a single value of integer which specifies the width/height of the resulting image, which will only have a single black pixel in the upper left corner and the rest being transparent and saved as a gif file.
View 6 Replies
Sep 3, 2011
I'd like to draw an image (like a bar code) pixel-by-pixel in a Visual Basic .NET WPF Application and ...
show the image in my UI
copy it to the clipboard
save it as a .BMP-File.
It should also be possible to add Paint-like editing features later.What is a good approach? System.Drawing.Bitmap works internally, but the only way I could show it is to convert it to an ImageSource and show it inside an Image control. Is there any better way?
View 1 Replies
Sep 4, 2010
I'm making a front end to dvdauthor.I have a picturebox which holds the menu background. In order to draw a textbutton on the background image I store the image in a hidden picturebox. So the text doesn't get drawn to the visible background.
Dim ctl As Control
For Each c As Control In pbMenu1.Controls
If c.GetType() Is GetType(TextBtn) Then[code]...
This works the first time. But if I hit save again it writes the text to the background image on pbMenu1.
View 2 Replies
Mar 11, 2011
I am trying to make it so that my form application can have hot links to any other program on your computer by simply having the user input the target path of the program and also save that so the user does not have to do it all over again every time.
View 14 Replies
Sep 4, 2011
I want to draw an image onto another image object but use an alphamask specified from another image that is grayscale.
I am drawing an animation manually so don't want to do this pixel by pixel as this would be extremely inefficient.
View 2 Replies
Jan 25, 2012
How to make program cuts Internet connection without appearing in the taskbar,I used the following methods, but did not succeed
1. shell("net stop dhcp") appear in taskbar
2. shell("ipconfig /release") appear in taskbar
View 21 Replies
Feb 7, 2012
[code]...
but, how to draw in picturebox? i use this code but not working!
[code]...
View 3 Replies
Oct 21, 2009
Is it possible to have a picture box and draw on a line on top of the image that is in there with the basic express package?
View 3 Replies
Dec 26, 2009
I want to know if there's a faster way to draw images onto a picturebox based on a list of point.
vb
Dim MyPoints as New List(Of Point)
Dim MyBitmap as New Bitmap("C:MyBitmap.PNG")
[code]....
Now, This code may be a little sloppy, but I just put it together. The image isn't very simple, but it's simple enough. After about 10 images that need to be drawn, it starts to get slow.What would I need to do to ensure it draws the images faster? If I made the image itself smaller would it make it go faster?
View 3 Replies
Jun 16, 2009
I need to know how to draw a bitmap image into a certain area in a picturebox, I also need it to be a specific size. I remember seeing it on the internet somewhere, I just can't find it again.
View 19 Replies
Mar 24, 2009
I assume that this will be an easy one for you guys. I have never dabbled with drawing in VB.NET. I have searched the forum and Google already, but have turned up nothing to help me. Here is my problem. I have an image that is in an image box. I would like to draw a string of text on it, centered vertically and horizontally. Here is what I am using to draw the text.
[Code]...
View 4 Replies
Jun 1, 2010
I know that you can pass a Point array to the DrawImage method of the Graphics object to apply rotation, skewing and flipping, but I'm having trouble figuring out how to calculate the rotation. So far I've got:
Dim radius As Integer = Math.Sqrt((rect.Width / 2) ^ 2 + (rect.Height / 2) ^ 2)
Dim dX As Integer = RadToDeg(Math.Cos(DegToRad(angle))) * radius
Dim dY As Integer = RadToDeg(Math.Tan(DegToRad(angle))) * dX
Dim new_upper_left_corner As New Point(rect.X + (rect.Width 2) - dX, rect.Y + (rect.Height 2) - dY)
This is all just off the top of my head so far, I'm not sure if it's right. How do I calculate the other points on the rectangle, and is there a built-in VB.NET method that's much easier? (Apart from Graphics.RotateTransform, which is slow and also rotates around 0,0.)
View 3 Replies
Jan 9, 2010
i have a tool strip with standard items inserted. The items for Cut, Copy and Paste have their Keyboard Shortcut Properties set to the appropriate shortcut combination.I have this code in the MDI's toolstrip for each items click event:vb If TypeOf Me.ActiveControl Is TextBox Then DirectCast(Me.ActiveControl, TextBox).Cut() nd also for copy and paste.
View 14 Replies
Oct 3, 2011
I am trying to edit an image. I can open the image with Picturebox1.load(mypicture)
I can change the pixels/edit the picture by Dim img as new bitmap(picturebox1.image)
[Code]...
now here is the weird part. When I save the image the filesize INCREASES..but the picture dimensions are the same Example... TEST.PNG 1.3KB, when opened up via picturebox/saved the image is now 2.3KB
not sure why...i even though I specify system.drawing.imaging.imageformat.PNG
samething with JPG... it actually SHRINKS it evenmore.. example 88KB jpeg.. saved as jpeg is now 47.7KB...
View 7 Replies
Jul 17, 2009
I have a problem with saving images in Access. OK the problem is: I saving for first a picture without problems, but then I want to change it for instance "I don't like this image and I want to change another one". Access doesn't want to save second image... and I don't understand way! Code is OK I think because it saved one image. I can change the previous image only if I closing the program and I start it again.[code]...
View 8 Replies
Feb 21, 2009
I looking for a way to crop/stretch a imagem and save using vb.net
View 3 Replies
Mar 11, 2010
How to save image in binary format in vb.net
View 1 Replies
May 6, 2010
draw an image on form using an image in resources within VS2008VB instead of using C:userspublicimages
View 1 Replies
Jan 9, 2012
I add a Image Control and a RichTextBox control to a from. And I want to darw a image by my codes.And then insert the image into a RichTextBox.
View 2 Replies
Jun 6, 2011
i am trying to draw a iamge in an mspaint control, and then put that image into a richtextbox but it will ask for save file and file has been saved i want to show image in richtextbox as soon as click on save file in dialog window.
View 2 Replies
Apr 10, 2009
How do I draw an image respectively on the PictureBox control and Image object? Welcome to the All-In-One Code Framework! If you have any feedback,
View 1 Replies
Jan 23, 2010
I'm still learning VB and I'm trying to do a yahoo sign up page from my own form. I learned how to write to the form just fine, however Im having a hard time downloading the captcha image file.I have tried getting all the images from webbrowser.document.images however the captcha image is not showing through this [code]Im trying to download the captcha image to my program directory.
View 5 Replies
Mar 13, 2010
Im trying to make an advance chat room with some cool features.
How would i save an image in memory from a stream?
View 1 Replies
Aug 30, 2011
were currently developing a software for our thesis. And were having a problem with the SAVE button. this SAVE button will save the two individual picturebox into one .BMP image when saved.
View 7 Replies
Jan 27, 2010
I'm having a image ".bmp" in my asp.net page. I should be able to draw over that image. How can i do this?(Similar to drawing in Paint)
View 3 Replies
Mar 9, 2010
I have a contextmenustrip with 10 options on it. Each option calls an image from my resources and changes the background image of my form. When i select an option how do i save it and make sure thats the image that loads next time i run my application ?
View 30 Replies
Mar 9, 2011
This has really been a problem for me in the past and with deadlines, we decided to just have the app copy the image to the server, rename it and save the link in the database. This is the worst way of saving that kind of sensitive data, I know. We now have the time to fix that.
View 4 Replies
Nov 29, 2011
I need to make a small application in asp.net where user could draw a small drawing and that drawing is saved in the database for later review.
View 2 Replies