Getting Pixel Value From A Selected Location In A Picture Box Display

Feb 15, 2010

I am writing a program in VB 2010. My computer is an E Machines dual processor Intel Celeron running at 1.8 gb/sec with 2 GB of RAM. I have a 1680 X 1050 display and the graphics driver in the computer is fully capable of utilizing this display. I am running Vista Home Edition.

The purpose of the program is to analyze a large number of infrared and visible light images from the geostationary satellites GOES East and West. Note: These images are TIFF and range in size from 400 KB to 70 MB. The pixels are either 8 bit or 10 bit depending on the image type.

The program allows the user to select a series of images from a file folder. These images are then displayed in a picturebox. A map covering the same area is also available to the user. The user may then move the cursor, via the mouse, to a selected location on either the map or in a picture. With a left click that location in terms of image coordinates is used to compute the geographic coordinates of the selected location. These coordinates are then displayed for verification purposes. So far, all of this works properly.

The next thing I need to do is to determine the brightness value of selected pixels in the displayed image. Because brightness is related to temperature this permits a detailed examination of cloud temperature and density in each image. By making this measurement at several different wavelengths (provided by images taken at different wavelengths) the program will then compute the atmospheric extinction factor at each selected wavelength and from that derive the atmospheric transparency function.

Here is where I have run into problems. I cannot find a way to extract the pixel value from the selected X, Y values input either by cursor position or by direct entry. I have tried the various approaches described in the documentation but I either get errors or a pixel value that is unrelated to the image. The following is a section of code that I am currently trying.

[Code].....

View 3 Replies


ADVERTISEMENT

Picture Into Picturebox Based On Pixel Location?

Sep 30, 2009

i have a chart of images.. and i want to load individual images into picturebox from that chart..chart = big image, eg alphabet chart. (yes i am creating a game for my small nephew.. pictures and alphabet) now, i want to show different pieces of images into picture box. like the A box, b Box etc one option is to cut the chart into pieces, save each piece with different filename and load individual filename into picturebox.but i saw somewhere that we can use pixel location to load images into picturebox..as i recall it required two pixel location, 1 was upper left and other was lower right.. and passing that pixel locations would load the rectangular image between those pixel locations into picturebox?

View 9 Replies

Forms :: UnBound DataGridView Location - Grid Must Be In The Correct Location According To The Pixel Point?

Dec 19, 2011

i am using an unbound datagridview so i can dynamiclly add rows. all that is working fine. but the grid is not is the location i have coded.. i am using the defualt form as a base then coding the unbound stuff in.. should i just create a blank class file and do everything? the only problem i am having is the grid must bees in the correct location according to the pixel point that i have given it. Right now it is placing the grid at point (0,0) no matter what point is entered on the line for location. so what am i missing??????

View 3 Replies

Convert .net Location Pixel To Vb 6.0 Location Format?

Apr 3, 2009

i need to developer project from vb.net to vb 6.0 and i have already project in vb.net and i have to convert in into vb 6.0 but i need same GUI format,but i get problem that is in vb.net control height and weidth is in pixel formate and there is vb 6.0 i dont know so i copy control's height and weidth or size so i got there is difference in vb 6.0 so any one have idea how to convert vb.net location pixel to vb 6.0 location format .

View 1 Replies

Any Function To Know Location Of Certain Pixel?

Nov 22, 2011

Is there any function to know the location of a certain pixel.

View 13 Replies

Get The RGB Color Of The Pixel At The Cursor Location ?

Nov 1, 2009

How can I get the color of a pixel at the location of the cursor? I know how to get the mouses position using MousePosition but I can not figure out how to get the pixel color at that location.

View 4 Replies

Build Graphics And Try Different Colors For Pixel Location?

Aug 6, 2009

1. Is there either a program or a way of using vb.net where I can load an image and get a reading of every hexadecimal value for every pixel location in the image? Quick example, sometimes, I'll load an image into Microsoft paint and I try to determine which colors are being used in certain locations of the image but all I can do is guess.

2. If it is possible (especially using vb.net), is there a way to build an image by manually coding hexadecimal values for every pixel location, then, saving the image? The thought here is that I can build my graphic and then try different color schemes until I'm happy with its presentation.

View 5 Replies

Copy A Picture From One Location And Paste It Into Another Location?

May 3, 2012

I'm trying to copy a picture from one location and paste it into another location however VB throws out the following error

Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)

both locations are on my local computer. So not sure what is causing the problem.

Here's the code

Module CPASU_SPC
Sub Main()
Console.Title = "MOARW Programs"

[Code]....

View 8 Replies

Pixel - Get Only A Square From Picture

Jun 3, 2012

Possible Duplicate: VB.NET replace pixel color of picturebox image i want to extract square from full picture full pic: [URL] i want only this: [URL]

View 1 Replies

VS 2008 : Get The Color Of A Pixel At Current Mouse Location?

Jul 29, 2009

I would like to get the color of a pixel at my current mouse location, when the mouse is clicked. The location is anything on the screen, not just a jpg, gif, png, etc..

View 1 Replies

VS 2010 Move Mouse To A Pixel Location Of A Program?

Mar 10, 2012

How can I move the mouse to a pixel location of a program?[code]I know it doesn't work, but I'm trying to make it easier to understand what I'm trying to do.

View 5 Replies

VS 2010 Getting The Colour Of Each Pixel In A Picture

Nov 19, 2011

I am looking for some information on getting the colour of each pixel in a picture. The ide is to get the colour and then have my program draw a line along that colour itself. For example. If i have a black square on a white background, I want the software to be able the draw lines on the four edges of the black square, Is this possible?

View 9 Replies

Save A User Selected File (FolderBrowserDialog) To A Location Selected In Another Dialog (SaveFileDialog)

Jul 5, 2011

I'm creating a BASIC application, and I can't figure out how to save a user selected file (FolderBrowserDialog) to a location selected in another dialog (SaveFileDialog).

View 5 Replies

Displaying The Contents Of Pixel Data Onto A Picture Box?

Nov 11, 2010

I have a code found in Internet which does the job of displaying the contents of pixel data onto a picture box. The Code goes as given below:

HTML
Protected Overrides Sub WndProc(ByRef m As Message)
Dim myBMP As Image
Dim pal As System.Drawing.Imaging.ColorPalette

[Code].....

View 1 Replies

VS 2008 Find Pixel Color In Picture?

Oct 4, 2009

I have a JPEG picture from my digital camera and I want to find the color of a given pixel, say x=10, y=10. How would I go about doing that? I have searched around on the form but nothing is working. I have loaded the picture into a picture box but dont know where to go from there. Also is it possable for it to give me a number corrosponding to each color instead of 3 numbers, one for red, one for green, and one for blue. I am eventually going to be using this to scan through many

View 18 Replies

Program To Detect Change In Selected Pixel On Screen - Memory Leak

Mar 21, 2011

I am fairly new to visual basic and have written this program to detect a change in a selected pixel on the screen. When the pixel changes, a sound plays every x seconds. It works fine but after a few hours of operation a possible memory leak causes it to either crash the program or the PC. I have watched the process and I can see 4k added to it every 4 seconds or so. Where this memory leak is coming from?

Here is the code:
Public Class Main
Public pointx As Long
Public pointy As Long
Public areaselected As Integer
Public TimeToPause, SecondTimer, changefound As Integer

View 10 Replies

Translate MouseEventArg.Location X,y Pixel Coordinates To Custom Grid Coordinates?

Nov 29, 2010

I want to translate MouseArgEvent.Location (x,y) coordinates into my custom graph coordinates. Mouse Y coordinates increase from top to bottom while my grid's y value increase from bottom to top. Given my following code, I would need to create 21,500 separate conditional expression for 100(y) x 215(x) possible coordinate locations for my grid.

Sub OnMouseMove(ByVal e As System.Windows.Forms.MouseEventArgs)
If e.X > 48 AndAlso e.X < 50 AndAlso e.Y > 397 AndAlso e.Y < 399 Then
MessageBox.Show("about 0,0")

[code]....

View 5 Replies

Forms :: Display Arrow Picture Over Another Picture?

May 10, 2010

I need to display a arrow picture over another picture. But i cant able to make arrow picture transparent other than the arrow. Always it is in rectangle format(Picture box). I tried the picture box color to transparent, But that doesn't worked. A separate user control for displaying transparent image will be appreciated.

View 2 Replies

Get Location Of An Object / Picture?

Jan 8, 2010

Im trying to get the location of a picturebox on my form or say if location = (20,20) then this happens. The action performed by the picturebox is determined by its location i need some way of monitoring it

View 3 Replies

Possible To Get Location Of Picture By Route?

Apr 23, 2012

i want to get location of all black pixel inside the picturebox like the picture2,3 and 4 belownd here's my code

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b1.Click

[code]......

View 2 Replies

VS 2008 - Display The Color Of The Current Pixel Under The Mouse Pointer

Aug 6, 2009

I want to make a small application for my web designing needs that will display the color of the current pixel under the mouse pointer. I need this to work on the entire screen (no matter what form/application is in focus) and it needs to update in real time.

I'm not worried about the math or working with coordinates, but I don't know (and can't find) anything that might get the color of the pixel under the cursor on any form. I've found a small number of VB6 examples, but I'm with .NET 2008. Does anyone know of a method or anything (DLL even >.<)

View 1 Replies

Location Of Mouse Inside Picture Box?

Aug 9, 2009

I researched this and found I had to use something called "ScreenToClient" [URL]...what I want to do is to have a picture box that I can just get the coords from easily (for example 0,0 bottom left hand corner)

So how do I get that to work? (im guessing something like comparing the picturebox size to the form size then working it out but im not quite sure how to do that.)

View 1 Replies

Make A Little Game - Picture Location

Jan 25, 2010

I was wanting to make a little game. You press a start button, and a picture moves into different spaces. If you can hit stop when the picture is in a certain spot, then you win. How do i make it so when i press the stop button, it will check to see if the picture is in the location (180, 307)?

This is what i have:

CODE:

View 4 Replies

Recognize Mouse Location On Map In Picture Box?

Mar 7, 2012

I have a country map in a picture box with provincial divisions. I can fill each province on mouse over by calling following floodfill function on my pictureBox MouseMove event[code]...

View 1 Replies

Vb2008 Changing Picture Location?

Jul 6, 2009

First of all take a look in here :[URL]...As you can see, in the image there're 3 items.So let's talk about the first one, the first right one. (CRAYON SHORTS)I want the picturebox to move always to the left side,After it knocks the "wall" it'll re-start all the progress.So simply, I want the picturebox to move left.

[Code].

View 3 Replies

Saving A Picture Without Manually Choosing The Location?

Feb 4, 2012

I'm making a screen capturing program, and I am trying to save the image. I can do it as a 'save as' like this

save as
savefiledialog1.Title = "Save File"
savefiledialog1.FileName = "Capture"
savefiledialog1.Filter = "JPEG (*.jpg;*.jpeg;*.jpe;*.jfif)|*.jpg;*.jpeg;*.jpe;*.jfif|PNG (*.png)|*.png"

[code]....

How could I do a quick save option so that it auto saves to a certain location that the user doesn't have to choose and as a .jpg?

View 9 Replies

VS 2008 Placing An Image At A Certain Location In A Picture Box?

Feb 6, 2010

how I loaded my image

Dim test(100) As Image
test(0) = Image.FromFile("C: est.jpg")

now i want to put it in a picture box at location 50-50

View 6 Replies

Game Programming :: Appear On A Random Location On Another Specified Larger Picture Box?

Jan 13, 2011

I have a picture box and I tell it to appear on a random location on another specified larger picture box.

here's my code:

Code:
Sub P2_AppleMove()
Dim P2ax As Integer = CInt(Int((P2Foodarea.Width * Rnd()))) ' sets the random area of the food

[Code]....

P2foodarea is a large picture box I created. I only want the apple to spawn on P2Foodarea, atm, it spawns on P1Foodarea which is very weird. P1foodarea is a whole other picture box. I even made new variables as you can see P2ax and P2ay, but it still doesn't spawn on P2Foodarea. I have even tried recreating a new picture box for P2foodarea

View 12 Replies

Load A GIF File, And Start With The First Pixel And Check To See If That Pixel Color Is Closer To Black, Red, Green Or Yellow?

Jan 30, 2009

I would like to load a GIF file, and start with the first pixel and check to see if that pixel color is closer to Black, Red, Green or Yellow, then take what ever color it closest matched to and output that color as a number, 0, 1, 2 or 3. So just for a small example a 5x4 GIF would be converted to something like this: 0112223322220111332?

View 13 Replies

Determine The Pixel Width And Pixel Height Of The Largest Image?

Jul 4, 2010

How do i determine the pixel width and pixel height of the largest image i can paint onto the graphics object of a printer while inside a printpage event?

Imports
System.Drawing
Class

[Code]......

View 2 Replies







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