VS 2010 Finding Darkest Pixel?
Aug 16, 2010
I am downloading a JPEG image from a site and then I need to find the darkest pixel of that image. It also needs to be very fast since speed DOES count here, majorly. (probably has to use an API)
View 4 Replies
ADVERTISEMENT
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
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
Sep 13, 2007
Is there a quick way to check the color of a pixel on the screen?
View 2 Replies
Jul 20, 2009
during the development of my project, i've fall in the need to change the position of some forms, pixel by pixel using a timer.Now, i've checked that the movement is very fluid when form is not very heavy, when it contains few elements, but when it has a lot of elements inside, the movement becames nervous and not fluid, the movement becomes jerky.
View 5 Replies
Mar 6, 2011
I am trying to set a pixel a particular color. The code below does not work and don't know why.
Dim myimage As New Bitmap(PictureBox1.Image)
Dim i As Integer
For i = 0 To 59
[code]....
I also checked the Microsoft's sample code for setpixel which is below, does not work either. At least, I could not make it to work. I have used it within picturebox1_paint subroutine but got nothing.
Private Sub SetPixel_Example(ByVal e As PaintEventArgs)
' Create a Bitmap object from a file.
Dim myBitmap As New Bitmap("Grapes.jpg")
[code]....
View 2 Replies
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
Apr 14, 2012
This program using Visual Studio 2010, WIndows Form App I want to create a program which need RGB value from an picture in PictureBox But it has an error, NullReferenceException was not unhandled
The code Private Sub PictureBox1_MouseDown(ByVal sender As System.Object, ByVal e As
[Code]...
View 19 Replies
Apr 24, 2012
I'm loading a picture into a picturebox. How can I set the pixel width to a fixed number, ex 300?
The whole picture must fit the picturebox, even if the original resolution is higher.
Dim bmp As New Bitmap("c:Test.bmp")
bmp.SetResolution(300, 50)
PictureBox2.Image = bmp
View 22 Replies
Dec 3, 2010
I've set up a transparent user control (used for drawing tools) over a page, and I'm trying to set up some code that will allow you to click through the control if the pixel underneath the pointer is transparent, but will NOT let you click through if the pixel is colored. Basically, if they've drawn a line there, I don't want them clicking through it.
View 5 Replies
Mar 17, 2012
I am trying to make an application that can do effects to images but the problem is when I use large photos its takes a very very long time. I am reading it per pixel with bitmap's GetPixel and SetPixel methods. Is there anyway to make this process faster without using C# or C++?
View 1 Replies
Jul 29, 2010
How can I find out the pixel colour of a certain point on a web browser. For instance,WebBrowser1.getPixelColor(0,0) would get the rgb colour value of pixel 0, 0.It doesn't have to be rgb it might be hsl or whatever.The web browser is showing a local web page that is hosted on a network. If there is an error then the screen goes all grey. What I want to do is, if this does happen, display an alert message like - "An error has occurred
View 3 Replies
Apr 16, 2011
I have an empty picture box with the background colour set to the transparancy colour. How can i get the colour of the pixels within the transparant picture box so that i can create a bitmap of the transparant section of the form?
View 2 Replies
Jan 20, 2011
In Vb6 you could make a private type by doing the following:
Private Type PointAPI
X As Integer
y As Integer
End Type
Vb.Net doesn't support this. I need it to store the x and y position of a certain pixel. I know i could just declare an x and y variable but i would rather use something like:
xyCentre.X = 5
xyCentre.Y = 10
View 10 Replies
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
Dec 1, 2011
We stream the BBC news channel through a laptop hooked to a PC in reception for our clients. Annoyingly the stream is interrupted randomly (the line isn't dropping, it's the BBC's problem). Therefore when it's interrupted we get an error screen appearing which we have to go and manually refresh to get the stream back playing.
My intentions are to build an app which will be run alongside (silently) the stream monitoring intermittently a range of pixels. If the range matches the error screen that I mentioned previously then I'd call "Esc" to exit the full screen and then "F5" to refresh the browser and finally a double click on a specified coordinate to bring it back to full screen.
Problem: I've been doing some googling and so far have only seen related posts where the comparison is between two saved images. Due to this I expect the answer to be "Take a screenshot every now and then, compare, return result".
View 5 Replies
Mar 7, 2011
I am loading an image on picturebox, then trying to paint some particular pixel but it does not work for the tif image that I have. I got the following error message "SetPixel is not supported for images with indexed pixel formats."
View 5 Replies
Sep 6, 2010
Im having a hard time finding tutorials for the HtmlAgilityPack, all of them are for c#, so im having to use c# code and convert it to vb.Here is the my code, im still getting errors with the 3rd line:[code].......
View 4 Replies
Jan 8, 2010
I'm obtaining data from a StreamReader.My StreamReader is called "reader" and I'm reading the stream with "responseOutput" like this "responseOutput = reader.ReadToEnd()" And in that bunch of text that I receive I want to FIND and EXTRACT a piece of text and then STORE that extraction in a variable of String type.Here is part of the code I'm referring to:
Dim response = request.GetResponse
Dim responseOutput As String
Dim reader As StreamReader
reader = New StreamReader(response.GetResponseStream())
responseOutput = reader.ReadToEnd()
And here is the text or data that I'm receiving (what I'm about to show you is the result of a "MessageBox.Show(responseOutput)":
<TweetPhotoResponse xmlns="http://tweetphotoapi.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Large>http://cdn.cloudfiles.mosso.com/c54092/x2_7e143b</Large><MediaId>7e143b</MediaId><MediaUrl>http://tweetphoto.com/8262715</MediaUrl><Medium>http://cdn.cloudfiles.mosso.com/c54102/x2_7e143b</Medium><Original>http://cdn.cloudfiles.mosso.com/c61132/x2_7e143b</Original><PhotoId>8262715</PhotoId><SessionKeyResponse/><Status>OK</Status><Thumbnail>http://cdn.cloudfiles.mosso.com/c54112/x2_7e143b</Thumbnail><UserId>2268670</UserId></TweetPhotoResponse>
And all I want to do, is to extract a specific part of that text, which is the "PhotoId" value (I highlighted it in red), in this case the value is "8262715", and then store it in a variable (I know how to do that I just need the value).The text or data I'm receiving changes only the PhotoId everytime it's requested.
View 3 Replies
Sep 18, 2010
I loaded a text file to a text box, and I want the program to find a certain line containing only the strings I specify. But the text file will likely contain many of them, so I want it to pause scanning at the first line I'm looking for until I tell it to continue, then the second line, and so on. So the questions are:
1. What's the method for finding the exact line I want in a text file?
2. How do you start, pause, and resume scanning a text file line by line?
View 5 Replies
Dec 5, 2011
I have 2 images. One image is a large image and the second one is a small one. The small image has a copy of itself within the large image. I am wanting to find the coordinates of where the second image is located within the large image, a 'find feature' in other words. e.g, I might have an image with the word "Test" in it. And I want to find the coordinates of the letter 'e'...
View 8 Replies
Feb 24, 2011
What are the best ways you guys recommend to search the MSDN Code Library. I know there have been several instances in searching for ways to do something, doing a long workaround, and finding out later that there was a built in class that handled the problem that I was working on much simpler.
So what are some of the ways you guys use to find tools, classes, etc. when coding. Or are you just that awesome already.This is kindve just a general tips and tricks question. Sorry if Im in the wrong forum mods.
View 2 Replies
Jul 16, 2011
in the old days i could so something like
GWBasic
10 A$="ReallyLongStringInSmallSpace": B$="tiny"
20 PRINT USING" ASDFASDFASDF ASDFASDF"; A$; B$
Output:
"Re ASDFASDFASDF tiny ASDFASDF"
it would automatically truncate large strings to fit in a small assigned space, and it would use empty spaces for strings too short. it made it VERY easy to print fixed front text tables in aligned columns by automatically truncating long lines and expanding using spaces (chr 32) where needed.i've already looked at .Format but it seems just for dates, times, currencies, and various byte/hex formats.
View 3 Replies
Oct 25, 2011
I have a form, that when opened, displays the image from the webcam onto it.
It's a test, to ensure the webcam is working. A prompt appears that asks if the webcam is working. However, some testers are lying and I need to find a method to make sure they can't lie.
My team wants to use a large bar code that the tester has to hold in front of the camera.
So I need to figure out how to either read the bar code, or just read the text in the bar code, which reads, "* C A M *."
It looks like the image below, but much larger.
Does anyone know where I should begin? I was thinking about using GetPixel, but I'm not sure I could or if that would be reliable enough.
View 1 Replies
Feb 2, 2012
I am loading a webpage within WebBrowser1 and trying to check the page for text. I just want it to find whether or not the text on the page says "No jobs are available at this time." and if those words are not found then I am going to have the program alert me. When I run this code..
[Code]...
View 21 Replies
Jul 18, 2010
I need to have the webbrowser on the selected tab dimmed, so like Dim foundbrowser = TabControl1.SelectedTab.Controls.Find("WebBrowser", False)i know thats totally wrong but its just to show you what i kind of need, how do i do this? The only control on the selected tab is a webbrowser if that helps?
View 2 Replies
Sep 1, 2011
I am working on a MSDN project from 2007 it calls for a Common Dialog Control but I can not find it. Has this been deprecated and/or is there something to replace it? If not how can I access this in VS 2010 for a VB project?
View 16 Replies
Nov 10, 2010
I couldn't get the SO text editor to mark parts of the post correctly so if you can trick SO into properly formatting the exception text and the code
[Code]...
View 1 Replies
Feb 27, 2011
how to find the row position/index in a data table, using a value from another table. For example, I use the row position from Linkingtable1 to get my value for CustomerID, but i want to use the CustomerID to search the CustomerTable for its row position, in order to show the Customers Name in a text box, As currently when loading the textbox shows the customerID. I understand the code to get the names from the rows in the datatable, its just finding the row position of the customerID.
View 9 Replies
May 27, 2012
I have an assignment due tomorrow, and I thought I had it all figured out but there is one question I don't know how to program. The assignment consists of a form with textboxes in which the user types info about a book (author, title, genre, etc.), which he can save to a textfile by clicking the save button. (At the moment it's not saving it to a textfile but just a 'file', which can be opened with notepad but is of no specific datatype, not sure how I do that, but is less important). There is also a button with which the user can display information from a different, earlier created textfile.[code]
View 1 Replies