Ake Image Under Rectangle To Be Clear And Outside Area Translucent?

Mar 27, 2011

I am currently working on image cropping software. Any idea how to make image under rectangle to be clear and outside area translucent?

View 5 Replies


ADVERTISEMENT

Interface And Graphics :: Make Image Grey And Rectangle Area Colour

Jan 26, 2011

I am using the following code to place a rectangle around a form / form control, however what I want to do is make my screen grey and only the form / form control area be displayed in colour.

Code:

I have googled for ages trying to find something on this, but with no luck.

To illistrate this better they are using the same functionality in snagit 10, please see below link to a page that has a video link showing this (23 sec into video)[url]

View 4 Replies

Finding Area And Perimeter Of A Rectangle?

Sep 8, 2009

OK, so I just started this VB programming class at school. But I don't understand much because the teacher doesn't really teach us. He just types everything on the projector and expects us to keep up. We have this project in which we are supposed to build a form that accepts the length and width of a rectangle, and calculates the area and perimeter of the rectangle. CAN SOMEBODY PLEASE HELP ME?? I really have no clue how to do this, and more than half the other people in our class don't either, so finding help within the class is pretty much out of the question.

The user enters values for the length and width of a rectangle and clicks the Calculate button or presses the Enter key to activate that button. The application then displays the area and perimeter of the rectangle in the third and fourth labels on the right side of the form.

Specifications The formula for calculating the area is width * length. The formula for calculating the perimeter is 2 * width + 2 * length. The application should accept fractional decimal entries like 10.5 and 20.65. Assume that the user will enter valid numeric data for the length and width.

View 39 Replies

Find The Area Of A Circle Which Is Inside A Rectangle?

Jun 24, 2011

I'm writing a .NET program for an engineering company. Their specification is to find the number of holes (either of same or different radius) on a rectangular plate and then to find the area of the rectangle and also area of the circle inside that rectangle. It's not essential that the circle touches the rectangle.

View 1 Replies

TextRenderer.DrawText Rectangle Area Offset For BorderStyles

Dec 5, 2010

Drawing text on a picbox I notice if the picbox has a border style set then the TextRenderer.DrawText rectangle area needs to be adjusted slightly otherwise text may be drawn very near the picbox borders and the text doesn't look as clean, but I'm not sure what those offsets should be, I hard coded them in, see code under "' area to draw". btw, the code draws the first word of text in bold and then the other words as regular. 'One button, One picture box needed.

[Code]...

View 2 Replies

VS 2008 Clear A Rectangle Drawn?

Aug 25, 2009

So; I've drawn this rectangle vb Dim zr As New Rectangle(100, 100, 100, 100)e.Graphics.DrawRectangle(Pens.Red, zr)

View 4 Replies

Clear The Chart Area Of A Graph?

Jan 5, 2011

I have a chart that I plot data points onto however if the user replots the graph the old datapoints are still there hiding the new datapoints. Essentially how can I clear the chart area of a graph?

View 2 Replies

Make A Program That Will Calculate The Area Of A Rectangle Based On The Length And Width Given By The User

Nov 20, 2009

im trying to make a a rogram that will calculate the area of a rectangle based on the lenght and

width given by the user

[code...]

View 4 Replies

Form Opacity With Timer Control - Textbox Text Area Is Alway Clear?

May 21, 2009

I trying to fade-in the application startup form using the forms opacity and a timer control.I dont know if I am using the right approch to achieve this so suggestions for alternatativ approches are welcome.I have a form with a few randomly select controls on it, one of which is a textbox.When I run the code, the form and all its controls reflect the changes to the form opacity property set through the timer_tick event except the textbox.The textbox remains clear all the time and I would like to know: Why?[code].....

View 8 Replies

ComboBox When Clicking Suggestions Will Clear Combobox Text Area

Mar 26, 2011

When I will click the suggested text shown in the combobox it will disappear.My Combobox btw is connected in a database.If I type Kev then kevin and kevsky will show at its suggestion then when I will click any of it ,the combobox text will be empty or will clear what I typed ("Kev") and will not show what I clicked.[code]

View 7 Replies

Add A New Floating Rectangle With An Image?

Mar 16, 2012

i want to add a new floating rectangle with an image inside it to my form when i click on a button control and then use a timer control to move it in a straight line across the Form. the problems I'm having are:

1) Drawing and filling the RectangleF on the screen.

2) Animating/moving it from X1,Y1 to X2,Y2

3) Triggering the Drawing and movement with a Button Control

View 6 Replies

Zoom A Particular Area Of Image?

Feb 26, 2010

How to zoom a particular area of Image in vb.net

Like e.g.,(50,50,100,100)

how to zoom this small region of an image I Already know how to zoom an image but not how to zoom a particular portion

View 4 Replies

Resize Image [jpg, Png] Through Rectangle API With Mouse Move?

Jan 21, 2011

I using vb6.0.I want to load a image into a picture box and resize it in runtime through mouse.Image type is jpg or png.my logic is,

1. load image[jpg or png ] into picture box and draw a rectangle using rectangle API, according to image size.

2. resize rectangle through mouse and according to the size of rectangle change size of image.

View 3 Replies

Finding The Brightest Area In An Image?

Aug 5, 2009

I'm working on a small project for the fun of it. One of my hobbies is astro-imaging and I take pictures of planets, nebulae gallaxies etc . One of the more challenging targets is the International Space Station. I have had some success with the ISS by manually aiming my telescope as the Station moves across the sky.

What I am trying to achieve is to write a program that will lock onto the brightest area of a webcam image. If the brightest area (which will be the ISS) is off center, then commands are sent to the telescope to recenter it.

So far I have been able to write code that talks with the scope, and I have been able to get a webcam stream to show on a Form.

So the last piece of the puzzle (well I am sure there will be other things that have to be worked out) is to identify the brightest area of the image. I am scratching my head as to how I should accomplish this.

I'm thinking I should dump pixel information into an array maybe, and establish which line and column has the brightest average values (I could then draw a cross hair over the image).

View 3 Replies

How To Delete Image Area In A List Box

Jul 1, 2011

i am new to vb. i have created a program which has work areas/image areas. i can create as many as i like and i have created a code to delete a work area. but i cant delete more than one and i cant find out how to fix the problem i will post my code so you can see what i have out so far,

[Code]...

View 17 Replies

Save Image Area And Load?

Jan 18, 2011

I need to load a picture and save some areas into a database (like you do it on Facebook when tag peopple into pictures).I need to save de selected area and then, in another form, show the picture and the selected areas in blue?

View 1 Replies

Draw Rectangle On Image Where Color Pixel Is Black?

Mar 17, 2011

I want to draw a rectangle on image where color pixel of image is black

View 1 Replies

Rectangle Drawn On Picturebox Gets Erased When Scroll Image?

Apr 1, 2010

rectangle drawn on picturebox gets erased when i scroll image.i.e

i have made application for image cropping. on mouse down and mouse up event, an rectangle is drawn on picturebox using graphics.

1) now the problem is that when scroll image rectangle drawn on picturebox gets erased.

2)now i want resize this rectangle as per user's interest

how to resize the rectangle and drag the rectangle on picture box.

View 5 Replies

VS 2010 Paint Rectangle Image Distorts When Scrolling?

Oct 12, 2011

I have a tabcontrol that I am trying to paint the background with a gradient rectangle. It looks great when the tab loads, but when I scroll, the background distorts. below is the

Private Sub tabcontrol_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PanelDataSheet.Paint
'Creating a new Rectangle as similar width and height of the datasheettab
Dim oRAngle As Rectangle = New Rectangle(0, 0, PanelDataSheet.Width, PanelDataSheet.Height)

[code]....

View 1 Replies

Convert Visible RichTextBox Area Into Image Object?

Aug 12, 2009

I'm working on a Vb.net project. I have a form with a RichTextBox or a simple TextBox control. It contains hundreds of text lines, so the control has to be scrolled.

I want to send to a printer only the lines that are currently seen on the control window.

That is, I want to convert what I see into an Image and then draw that image thru e.Graphics.DrawImage.

As you can see, it could also be the case of a ListBox, a TreeView or any other scrollable control.

How can I grab that rectangle area and then convert it into an Image? The rest I already know how to do it.

View 1 Replies

Make Image Area's And List The Images In The Folders

Aug 3, 2011

i have a program with the ability to save view and scan images. i am currently working on making work area's. so i have two list box's. listbox one is for the image area name. listbox2 is to list the pages in selected image area (mouse click). i have created the form to show you and i will post a link below. i have started trying to do it but have got stuck. i use an input box to give the image area's names. but thats as far as i have got at the min.

i need to be able to make image area's and list/view the images in my picturebox. plus i would like to create a folder or how ever many the user makes behind the scene thats called whatever the image area is called and in that folder is the images the user has saved in that folder. sorry if this is hard to understand. i have asked on another forum but i didnt get what i wanted it to do.

[URL]

i have gave you a link so you can see what my form looks like so you have a slight understanding on what i want it to do. its work in progress so sorry if it looks rubbish.

by the way i can save an image but it only saves it one certaint place and i cant save more thasn one as it replaces the image. and as for the scanned image thats the same.

View 4 Replies

Scan Webbrowser For A Resource Image And Click In That Area?

Oct 5, 2010

Is it possible to scan the pixels in webbrowser for an image that was loaded into my resources and then click on it? What I want to do:Have a reference image in resources Scan webbrowser1's PIXELS to see if it appears on the current page,Then if it does, Click somewhere in the region of the image.I do NOT want to search for a .jpg .png .gif .bmp etc. in the webbrowser.

View 10 Replies

Clear The Image Button

Apr 24, 2011

I have Problem to clear the image vb.net. i have one picture box and 4 button but the problem is that if picture is save in the path folder. and load in the form load the clear button is work fine and clear the image but after that when i browse the image and press OK picture box load the image then i press clear button the image is not clear its automatically Stretch the Image. how can i clear the image button 1 browse [Code]

View 3 Replies

How To Clear A Picture Box Image

Feb 26, 2012

I'm creating a key logger in vb 2008 for my home computer that can send keys records & screen shoots at my E-mail. It has a textbox, 3 buttons, a picturebox and some timers,actually the process is that in every 3 minutes button1 take a screen shoot (at 2.90 minutes) OK, then button2 save it in "C:/mydir/hidden folder/" (at 2.95 minutes) then button3 send it via Email as a attachment (at 3.00 minutes), its work fine in first round or first 3 minutes.but in Repeating Process or in 2nd round or after 3 minutes it give error that means image is in use, I want to break the link between image and my program (key logger) there for my

View 1 Replies

VS 2008 : Create A Specific Area To Drag Form (ie: Image, Label)?

Sep 13, 2009

how to create a specific area to drag my form (ie: image, label). I found some code that works, however you can click anywhere and have it drag...

Const WM_NCHITTEST As Integer = &H84
Const HTCLIENT As Integer = &H1
Const HTCAPTION As Integer = &H2

[code]....

View 4 Replies

How To Clear PictureBox To Draw New Image

Sep 11, 2009

How can I clear the image in a picturebox to draw a new image.

View 3 Replies

Drawing Graphics - How To Clear Image In PictureBox

Nov 23, 2011

I have 1 image in picturebox. Now I draw some rectangles. I'm trying clear the image (only rectangles and left the image) without success.

Private Sub btnImageSelection_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImageSelection.Click
Dim intImages As Integer = 0
Dim intImagesLine As Integer = 0
Dim intImagesColune As Integer = 0
picImage.Image = PictureBox1.Image
[Code] .....

The cycles for is for show the rectangules and works fine. but
i.Clear(Color.Blue)
The image is clear but the rectangles are showed and then unshowed.

View 19 Replies

List(of Rectangle), Rectangle.offset(x,y) Doesn't Work?

Jul 26, 2010

i've got a little problem with List(on T) variables.

[code]...

It works perfectly fine. Does anyone know what the problem is?

View 2 Replies

Call Up Translucent Window (shell)

Jul 2, 2010

I need to call up a window from my application.

1- I want this window to be translucent and shows in front

2- I want this window to be translucent and shows behind

RetVal = Shell("C:EnergyPlusV5-0-0RUNEP.BAT", AppWinStyle.NormalFocus)

View 3 Replies

VS 2008 Translucent Layer On Form?

May 12, 2010

I am using normal windows form application. I wanted a way whereby I could create a layer over my form which would be semi transparent and nothing would be accessible until I click a button or do something like that. What I want is similar to a grey sheet that covers your screen in vista or 7 when user admin Yes/No box is displayed. Nothing is accessible behind. Or as you might see in some webpages where till we dont click a button or so the content behind is inaccessible.

Actually I want this to apply only on my mdi child form (a particular one) and it should enable me to see whats in the form but semi transparent and till i dont click a button on it, the content behind should'nt be accessible. Kinda like what you see in webpages whereby there is a button in the center and till you dont click it you can't select or click on content behind it.

View 9 Replies







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