Any Way To Zoom In On PictureBox In Form?

Apr 23, 2011

I finished making a top view shooter game that shows the whole map from above. The map is kind of big so the characters that move around are kind of small. Is there anyway to zoom in on the main character (a picture box), but still keep all the original properties of the form?

View 1 Replies


ADVERTISEMENT

Picturebox Zoom While Maintaining Same Size Of Picturebox?

Jul 8, 2011

I have a picturebox on a form. The image in the picturebox is actually a report. I want it so if the user clicks on it it will zoom larger --- while the picturebox remains the same size. Of course, the entire image will no longer be seen. So I also want to be able to drap this image around with the cursor. The examples I've found for picturebox zooming cause the picturebox itself to get bigger and smaller. I need it to be like an Access report. Click on the report and it gets bigger. Click again and it goes back to the full image. Does anyone know of an example or tutorial in VB.Net for this type of zoom-with-fixed-size picturebox function?

View 2 Replies

A "preview" Form To Zoom Inside A Picturebox?

Oct 5, 2010

I would like to prepare a preview window to zoom inside a picturebox. In my form, I have a picturebox (name picSource1) and inside the same picturebox, I have some other pictureboxes (like picsmallSource1). All of them make a detailed whole photo. My aim is to make a new form with a new picturebox (name it picDestination) so that when mouse comes over the source picSource1 (and of course the other small pictureboxes inside this), Form2 becomes visible and picDestination shows the zoomed part where the mouse cursor shows. So while the mouse moves over the image, the new picturebox shows in real time the zoomed version.

Public Class ImageEventArgs
Inherits EventArgs
Private _image As Image

This code works very fine but I should revise it to somehow "overlay" the picturebox1 with other small pictureboxes, isn't it?

View 5 Replies

Zoom In And Zoom Out PictureBox

Apr 7, 2011

i have map of a State, i need to let the user to Zoom in amd Zoom out and show some buttons on the Picture if we zoomin or zoomout the buttons also will be moved according to the location like google map how to achive this?

View 9 Replies

Crap PictureBox Image And Zoom?

Nov 2, 2011

I am stuck on crap picturebox image and it makes zoom on others picturebox.

View 1 Replies

PictureBox Zoom But Align Picture To Top?

Mar 17, 2010

So I've got a picture box and I want to load up all kinds of pictures programmatically , with unknown dimensions. So I pick sizemode Zoom to ensure that the image isn't distorted and I can see all the image. However if the image width is greater than height it vertically centres the image in the PictureBox control's bounds, leaving a gap at the top and bottom.

What I'd like is for the picture to be alighned to the top of the control in this scenario. So the picture will be immediately below a control above it.

Is there any way of acheiving this? Perhaps by over-riding paint event ?

Oh PS: The Picture box is docked to 'fill', otherwise I'd just change it's dimensions in code to have the same aspect ratio as the image.

View 17 Replies

Implementing Zoom Feature To PictureBox In Paint App?

Jan 17, 2010

I've created a paint application, and now I want to implement zooming of the picturebox where everything is drawn.

View 3 Replies

Zoom Picturebox With Static Edges (for Report)

Jul 8, 2011

My report is an image in a picturebox. I want it so if the user clicks on it it will zoom larger --- while the picturebox remains the same size. That's important. The examples I've found for picturebox zooming cause the picturebox to get bigger and smaller. I need it to be like an Access report. Click on the report and it gets bigger. Click again and it goes back to the full image. Of cours when you're zoomed in, the perimeter of the report is not visible. So I'd like to be able to drag the image as well so the unseen portions can be seen.

View 20 Replies

Zoom In/zoom Out Screen Display/output?

Apr 4, 2009

How can I zoom in/zoom out screen display? This is to be used for people having eyesight problem. I want to control the screen resolution by percent and not to any fixed size provided in control panel/display settings.I have to control the output of the main display and zoom in/zoom out by percent, according to user's eyesight matching

View 3 Replies

[2008] Zoom In And Zoom Out Document In Webbrowser?

Aug 26, 2008

Is there a way to zoom in and zoom out document in webbrowser?

View 1 Replies

How To Zoom A Form

Nov 16, 2011

I need to zoom a form with many controls on it. I'm making a web maker project for Vietnamese but I don't know how to zoom a page (form without system bar)

View 2 Replies

Can Zoom Form While It Is Active

Mar 20, 2012

i want to know is there any way i can zoom my form in vb.net. i could resize the form and byanchoring all controls to left top right bottom i can make it look like zoom. but it is not actually zooming. it is resizing. while font size and other formats are still as same.

View 1 Replies

Add Picturebox To Form And Draw To It / Will Picturebox Flicker When Controls Are Added To Form?

Nov 15, 2010

I know when I draw to the form and add controls I get a flicker effect.If I draw to a picturebox on the form and add controls will the picturebox flicker?

View 4 Replies

VS 2008 Zoom In / Zoom Out Option?

Oct 30, 2009

I created a Zoom in and Zoom out function for my application and it works great. I would just like your opion on my code, because I am wondering if it can be done a bit neater and more effective.

ts = ToolStrip
cms = ContextMenuStrip
vb.net
If Me.Font.Size < 30 Then

[Code]...

Me.form.font changes the font of all the controls except toolstrips, contextmenu's and menustrips.

Any idea's if this can be done any neater or how you can make menustrip etc.. use the font of the form?

Edit:This is the Zoom In version btw. The Zoom out is identical except it uses - instead of + when declaring the newFontSize.

View 1 Replies

Add A Zoom Function And A Pan Function To A Picturebox?

May 1, 2010

I want to Use Picturebox_MouseCaptureChange Event Arg to zoom in on a peice of a PictureBox.Image. The Help Search says there is a zoom and a pan function on Systems.Windows.Controls But I cannot find it in the add reference component of the Visual Basic 2008 edition...I have one program that I did that allowed me to zoom using a TrackBar here it is...

[code]...

The problem is that I cannot get the trackbar to zoom any closer that the top left side of the controler....I need to zoom and then pan around the image.

View 1 Replies

Add Functionality Of Zoom In And Zoom Out?

Oct 13, 2010

vb.net how to add functionality of zoom in and zoom out

in AxWebBrowser in vb.net using buttons .

I am able to do it using ctrl + mousewheel but how to do it programatically.....

If I open an excel file in the axwebbrowser then this functionality will work or not ..

View 3 Replies

Zoom In And Zoom Out A Richtextbox ?

Jul 19, 2011

how to zoom in and zoom out a richtextbox in vb.net.

View 4 Replies

PictureBox In MDI Parent Form Covers The Child Form?

Jan 6, 2011

I have a picture box created in the parent form.But whenever i call a child form, the picture box will be at the top and cover the child form.I try with SendToBack and then it is completely hidden at back ofthe parent form.

View 3 Replies

Add Picturebox To Form With Loop?

Nov 12, 2009

I'm trying to add picture boxes on my form for a connect 4 game. I'm trying to make the grid and use a loop to do so. This is the code I have so far, trying to make it a subroutine I can just call on my form_load.

'create picture boxes for game board
Private Sub pb()
Dim i, j As Int16
Dim space As Int16 = 5
For i = 0 To 3

[Code]...

View 2 Replies

Add Scrollbars To Picturebox Or Form When It Becomes Too Big?

Dec 30, 2009

Add scrollbars to picturebox or form when it becomes too big?

View 6 Replies

Move A Picturebox In Form

May 17, 2009

I want to move a picturebox in my form.[code]I get an error saying: Cross-thread operation not valid: Control 'PictureBox1' accessed from a thread other than the thread it was created on.

View 4 Replies

Moving A PictureBox - Up And Then Down On My Form

Nov 20, 2009

(Visual Basic .NET 2003) I am trying to move a picturebox up and then down on my form. The Picturebox moves up but does not move down. The motion is more of a bouncing motion (to the left) until it disappears off the screen. I have one button and one timer. I know this is probably so simple, but I cannot resolve the problem

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
End Sub

[CODE]...

View 2 Replies

Moving PictureBox In Form?

Sep 17, 2009

how do i "drag and drop a picturebox" on a form drag and drop is used in vb.net for moving a picture by mousedown

View 11 Replies

Moving The Form With A Picturebox?

Oct 12, 2007

Okay, so just wondering, if its possible. I Have a picturebox (PictureBox1) and just wondering if I dragged the picturebox how could i drag the form?

View 5 Replies

Picture On A Form Or Picturebox

Dec 5, 2010

How would I draw a picture on a form? Would I put in a "picturebox" and draw in that? And if so, how do I do that? (I want to draw a bar chart).

View 2 Replies

Picturebox Over The Form Or Panel

Jul 22, 2009

My name is DN and I'm creating a strategy game. I have created a panel and I have put a PictureBox on it. Now, the problem is here: The PictureBox is bigger than the panel. I know that we can solve the problem with putting to the panel two scrollbars, but as in a good game scrollbars should not exist in the main picture (map). I want for the people to control the map with keys (up,down,left,right) and the scrollbars should not be visible.

View 2 Replies

VB Form And Picturebox Transparency?

Dec 29, 2011

I want to try an simulate a fake lighting system in Visual Basic 2010 by using 2 images.One is Form1's background, and the other is Picturebox2's image. Picturebox2's image is a black background with a transparent circle in the middle.The only problem is, when transparent, it shows the background of the form, and looks right through the background image.How could I get around this so that the transparent part of the image is Form1's background image, and not the backcolor?

View 4 Replies

Add A New Windows Form And Then Add A PictureBox Programmatically?

May 29, 2012

how to add a new form to my application programmatically & then add a picture box, text box, and a button to that new form?

I can add a new button, a new form, or a new picturebox on my current form but I can't seem to figure out how to add a new form to my application and then put the picturebox and textbox and the button on that new form.

'Form2
Dim form2 As New Form
form2.Size = New System.Drawing.Size(500, 500)
form2.Show()

[Code]....

View 1 Replies

Allowing Drag On A Form / Picturebox?

Apr 17, 2010

I can't find a basic thing: how to enable a picturebox to be dragged inside a form? I'd need to be able to drop it inside a listbox so that listbox would get the picturebox's name-value in it. But I'm having trouble even getting started.

View 4 Replies

Change Image In Picturebox From Another Form?

Sep 30, 2010

I'm trying to change the image in the picturebox located on one form from a second form.

My code is: frmSetup.pbxUSBInterfaceAttached.Image = My.Resources.CheckMark

I noticed that when my code goes from one form to another, the debugger no longer knows that there is an image in the picturebox (pbxUSBInterfaceAttached.Image = Nothing). I tried changing the Modifiers property of the picturebox to Public and it had no effect. Is there any way to do this or do I have to change the image from within the form that contains the picturebox?

View 9 Replies







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