Capture Part Of A Canvas To Save As BMP / GIF?

Apr 5, 2009

I have an application that generates a replay of Air Traffic and I need to allow the user to capture parts of the canvas so it can be exported as a BMP of GIF. I did this in VB6, but not sure how to do it in WPF. I plan on drawing a rectangle around the intended capture area following the mouse till the user triggers the capture.

View 1 Replies


ADVERTISEMENT

Save Canvas As Either A Jpeg, Bitmap, Or Gif File

Jun 15, 2009

I created a paint type program for signatures, and now I would like to save my canvas as either a jpeg, bitmap, or gif file, but I am unsure how to go about this. Here is my code,[CODE...]

View 4 Replies

VS 2008 - Capture A Part Of The Screen?

Jan 24, 2010

I'm doing program that I can capture a part of the screen. Heres code, I don't know why it's not working.

[code]...

View 11 Replies

VS 2005 Using An Application To Capture Selected Part Of Screen By Resizing The Form And Capturing Area Of It?

Mar 9, 2010

Hi.. Im using an application to capture selected part of screen by resizing the form and capturing area of it!! now i want to reset the form once my work id done!! i mean if i press a "RESET" button the form should be load as first time it was loaded.(the real form size..)

View 1 Replies

VB Using A SQL Database - Capture A "MT Number" (in The Borrow Applicator Part)

Dec 8, 2010

Im developing in VB using a SQL Database, the thing here is that i am new to SQL. What Im trying to do is when i capture a "MT Number" (in the Borrow Applicator Part) the Initial Counter Textbox shows the respective Counter for the MT number i entered. Those fields are in the same table but i dont know what to do.

Heres a picture of the form.

View 2 Replies

Capture And Save As Video .WMV, Or .FLV File

Feb 26, 2007

Visual Basic has a function that allows a video from a webcam to be saved as .AVI file which inherently is too large for data transfer over the internet. I would like to know if there is a function that allows the video to be saved as a .WMV, or a .FLV file so its smaller and allowed to be transfered over the net. Here is a snippet of the code i am using

[Code]...

View 2 Replies

Capture And Save Streaming Video Using NET?

Jul 22, 2009

How to capture a streaming video via .net and save it off to a file on the server? I have seen a few comercial applications (url...) that do it via a client app, but none of them had an API that I could interact with in .NET.

View 6 Replies

Capture An Image With A Webcam And Save It In A Picturebox?

Aug 13, 2009

how do i capture an image with a webcam and save it in a picturebox?

View 2 Replies

Capture And Save Still Image Through Webcam In Vb 2010?

Jun 4, 2012

how to capture and save still image through webcam in vb 2010

View 4 Replies

Capture Video Of The Windows Desktop And Save It As A AVI File?

Feb 11, 2009

Does anyone know how to capture (Record) the Windows desktop and save it as a '.avi' or '.mpg' file. This functionality can be done using screen capture / presentation programs like SnagIT:[URL]..I have found many examples showing how to capture from a webcam using the 'avicap32.dll' DLL file but these dont help with this problem.

If you are asking why i dont just use SnagIT its because the interface is overly complex and building my own version would allow me to intergrate it into my existing programs.

View 8 Replies

Interface And Graphics :: Capture A Panel And Save It As An Image?

Aug 13, 2009

Is it possible to capture a panel and save it as an image?

View 9 Replies

Countdown From 10 Seconds To 0 Second,then Capture Image And Save To The Specific Folder?

Oct 28, 2009

This code countdown from 10 seconds to 0 second,then capture image and save to the specific folder,and than countdown to -1,-2,-3 etc,but I don't wont thet count to -1,-2,-3 etc..I would like to do that when it comes to 0 seconds,that the timer countdown again from 10 second countdown to 0 and overvrite the image

[Code]...

View 7 Replies

Forms :: Capture Active Window / View And Save Screenshot

Aug 22, 2009

I'm working on a UNO (Msn-based) online gaming tool - you know the card game. It's the second version with more features for UNO fans. I would like to get the screenshot function to work.

It's just as simple as this: The UNO main window
The screenshot viewer shows the screenshot of the active window (which appears by clicking on "Screenshot"): (This form is named as "Screenshot", the Picture Box "myPictureBox")

My question is, which code do I need to bind these functions. I think the pictures are describing this good enough. (The "save screenshot"-button is ToolStripButton1, the button for making screenshot is ToolStripButton10).

View 2 Replies

VS 2008 Screen Capture - Include The Cursor And Save All The Screenshots As One Video File?

Sep 19, 2009

im using this code

Dim VideoSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim PIC As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim image As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(PIC)

[code]...

How do I include the cursor with this and save all the screenshots as one video file?instead of saving as 1000 pics?

View 2 Replies

C# :: WP7 : Can't Get Canvas.RenderTransform Value

Feb 6, 2012

I have about 3-4 canvas controls and each contains about 750-1200 paths.Users needs to make some transform to them and I use for that a global

Canvas SelectedCanvas;
Initially (in the constructor) SelectedCanvas takes the value of one my canvas controls.
SelectedCanvas = canvas1;

[code].....

View 1 Replies

Wpf :: Exporting Canvas To Xps Vb?

Apr 26, 2012

I tried to export my canvas to a file. First I tried to export it to a png and it worked fine, everything looks the same as on the canvas.After that I modified my code to export to a xps file.

Dim thePack As IO.Packaging.Package = IO.Packaging.Package.Open(path.LocalPath,IO.FileMode.Create)
Dim doc As New Xps.Packaging.XpsDocument(thePack)

[code]....

View 1 Replies

Multi Form / Part Application Need To Make Part Protable For Transfer

Feb 22, 2011

im making an application in vb.net (duh!) anyway i have created and coded the whole project and it performs exactly as i want it to (i dont need code help). my problem lies with the fact that my project is 2-3 parts

1.a setup form that gathers inital data about the enviroment stores this data encrypted in a config file. after inital setup this form is not displayed again. but needs to be run on both computers

2. the second form is the real application form im in the process of turning this part in to a background service anyway this form is the one that establishes the connection between two nodes it works correctly

3. the config files

anyway here is my problem i want to make this application distributional with just one file the (.exe) and have this .exe make everything else happen. it runs the setup form and creates the first config file which it does then it needs to produce a copy of just the second form and the config file to transfer to workstation #2 that will run independtly without the whole application which i cant make happen then it needs to turn both workstations application on by only starting one on either computer and invoke the other computer to start its corrosponding app also no idea how to make this happen any ideas or suggestions as to where to look to try to find my answers.im thinking i might need to make two seperate applications (a setup app, and the running app) and include them both in a project and use the setup.exe to to package them together this is a little side project that im making for my self to use to make programming a little easier so i plan on giving it out to some fellow students to test and tell me what they think so im not really worried about ease of use or complicated procedures yet but if it turns out to work and actually be of use to anyone else i would be willing to rewrite it to distribute to the masses but for now i just want it to work for me.

View 4 Replies

C# - Canvas With Ruler Control In .NET?

Mar 2, 2012

Is there a control or something similar to a canvas with a margin(ruler), like in MS Word,in .NET WPF or WinForms?

I need to place some custom elements inside that user can modify in that canvas.

View 2 Replies

C# - Move A Rectangle Around A Canvas?

Sep 4, 2010

I have a canvas in the middle of my application with controls around it. I have a socket that recieves Points and saves them in a list.

I draw small 4x4 rectangles on the canvas for the number of points in my list.. say theres 4 points.. theres 4 rectangles.

I want to be able to move the rectangles when the points change with code.
is this possible without storyboards or any 'animation' class?

I have tried:

'cMap.Children.Remove(r)
'Dim nr As Rectangle = New Rectangle() With {.Width = 4, .Height = 4, .Name = "r" & P.Name, .Fill = Brushes.Red}

[Code].....

View 2 Replies

Cannot Find The Canvas Control In .NET

Jun 2, 2011

I am trying to convert some old VB6 code to VB.NET. The VB6 uses a Canvas control, simply

Dim cv as Canvas

I cannot for the life of me figure out how to use the Canvas control in VB.NET (using VS2005). MSDN says it is in the System.Windows.Controls namespace, which doesn't seem to exist? All I see is System.Windows.Forms, which doesn't include the Canvas control.

View 2 Replies

VS 2010 Drawing On A Canvas With Wpf?

Jun 30, 2010

Finally took the plunge for wpf, all was going well until i needed to do a simple drawing on a canvas control (presume this is the right surface to use). First thing i noticed is that there is no paint event in wpf so i looked at a few others (Initialized, layout updated) at this point i looked under google and found very little on this. would anyone here have or know of a tutorial to allow this functionality? My application (a testbed) will draw an archery target within the canvas along with score numbers in the correct place as follows to do this it will need to draw several filled circles with black (or white) borders and text objects in the correct position. the locations and widths of the circles will be determined using a simple algorithm so my question is on the structure of paint events within wpf, are the commands the same as in gdi+?

View 3 Replies

Use Avicap32 To Capture Video With A Web Cam And Save The Video As A Wmv Format Instead Of Avi One?

Oct 20, 2010

is it possible to use avicap32 to capture video with a web cam and save the video as a wmv format instead of avi one

View 1 Replies

Drawing Multiple Lines On A Canvas?

Jun 29, 2012

So I built myself a simple program to work out the kinks of drawing in my programs. I have a button that I press that when the textbox.text reads 1 it then draws a line of a specific height, color and position, the problem is when I click that button again it will crash informing me that...
"Specified Visual is already a child of another Visual or the root of a CompositionTarget."
[code..]

I know where the problem lies, its with the Canvas1.children.add(line), cause its telling me the line variable is already been used or in use on the canvas, I'm just unsure of how to turn that into a solution that will allow me to click the button a hundred times or more without being forced to MANUALLY make a hundred or more individual variables to store the line.

View 5 Replies

Wpf - Get Mouse Position On Canvas (But NOT On Window)?

Apr 17, 2011

I have a project in WPF 4 and vb.net 2010.

I have a canvas inside a window. The window is full screen, but the canvas is set to a solid 640x480 in the center of the window. I need to get the mouse position inside of the canvas, but NOT inside of the window. How do I do this?

View 1 Replies

C# - How To Send Canvas Image As Email Attachment

May 24, 2012

I convert a SVG to canvas using canvg to an image and then vb.net client side I convert the image to bytearray() and saved it to a folder on my server so I can attached by email :

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Dim path = Server.MapPath("PDFs")
Dim fileNameWithPath As String = path + DateTime.Now.ToString().Replace("/", "-").Replace(" ", "-").Replace(":", "") + ".jpeg"
Dim fs As FileStream = New FileStream(fileNameWithPath, FileMode.Create)
Dim bw As BinaryWriter = New BinaryWriter(fs)
[Code] .....

This code works fine and it send the image. Actually I don't need to save this image to my server I just wanted to send it without saving, this is what I have done so far.
Protected Sub emailSend_Click(ByVal sender As Object, ByVal e As EventArgs) Handles emailSend.Click
Dim customerChoice As String = DropDownList1.Text
Select Case customerChoice
Case "pdf"
[Code] .....

View 1 Replies

Display Canvas Element Of HTML5 In WebBrowser?

Dec 21, 2011

How to display canvas element of HTML5 in Visual Basic .net 2010 webbrowser (I try in framework 2 and 4, WebBrowser version 2 and 4)? It seems that VS2010 not support new version of HTML. In Microsoft Web Browser - "AxWebBrowser" didn't work too. Any idea to make this thing work?

View 1 Replies

WPF Brush Displays Negative Elements On Canvas

Apr 30, 2012

I'm making a drag and drop application and when I'm dragging an element inside the canvas the brush displays the element when the coordinates are negative this gives a weird resize in the brush witch also displays the negative elements.

How can I make the visual brush only draw the real size of the canvas, or the positive children of the canvas?

View 1 Replies

C# - How To Calculate Font Size Of TextBlock To Fill In Canvas

Feb 13, 2012

What I need is some formula to calculate font size of TextBlock for its owner - Let's say I have Canvas height 100.0 then which TextBlock font size should be to fill all space of the Canvas?

P.S. The main problem is that I scroll those TextBlocks horizontally...

View 2 Replies

Drawing A Line In Silverlight / Canvas Width Is Invalid

Mar 17, 2011

I'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 Replies

Wpf :: Why Canvas.SetTop Animation Doesn't Work Properly

Mar 17, 2012

I have this xaml:

<Canvas Width="75" Height="75">
<Button x:Name="button" Background="Olive" Canvas.Left="0" Canvas.Top="0" Width="75" Height="75" Click="button_Click"/>

[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved