How to convert twips to pixels with VisualBasic 2008?There is a windows application writen by vb6 and it has a main form 1000 twips high and it is in the top position. There is an another form writen by vb 2008 and i would like to fit under the vb6 form.[code]...
I'm trying to make a -what i thought would be simple app.My intention was to build program that:1) i'd provide a grayscale image2) the program would count the black pixels the grey pixels the more grey pixels etc. (the hue) and the white3) would make the percentage sum of all pixels, that is: 300.000 black pixels (rgb 0 0 0) etc. given that 0 is the black, 100 the white. e.g a simple grayscale image is 55.2 white
This was my way and i don't think that is useful:
First of a button to convert the image to greyscale:
Dim bm as new Bitmap(source.Width,source.Height)
Secondly, -and that's the stupid way- i did -or better i wanted to do- this: i put the code to dynamically create labels, each label having the colour of a pixel as background colour and as text the colour converted to rgb
The third step which i intended to do (i couldn't get pas two) was to sum up the labels etc.
i made this class to get certain pixels from screen:
Now i have lets say and array of pixels Example: Pixel 1 position X:100 Y:200 Red: 200 Green: 30 Blue: 40 Now i need to search all the sreen to find that pixel witout knowing its position. I need to have an output of number of results found and their position tnx.
i need to programm an application which reads the pixels from screen and then manage to read the word. The problem is the white text always changes colour slightly so when i use getpixel the value(as long) is always changing although it is always regonisably white.convert them into black and white or is there any range of values which describe the white color?
Note: This is not for violation of any rules especially because its a game programmed with java.
I come straight to the point without going too far. I need to scan all the pixels of a generic image and for each pixel derive the RGB components. I started with the following function that performs its task very good and returns 3 array (R, G, B) with the different values, but unfortunately is too slow.
is there anyway i could count the number of say Black pixels in my picturebox say i have a picture in it that has 1 black pxiel i would like to to but that to a string so i could put it in a textbox or a msgbox like this
so in RGB black would be 0-0-0 but how would i have it scan the pixtuebox and count how many pixels show up with the rgb color 0-0-0
I have been making an online role playing-game in VB2008 and inside the gameloop for the client there is some code that "smoothes" out the movement (instead of it being choppy from tile to tile.) It works pretty well but I'm having problems figuring out a math formula to get a good frame timer interval to set how fast the frames change based on how many pixels they can move per loop.Testing stuff out I found that 250ms is an ideal frame timer interval for 1.0 pixel movement per loop. If I were to double the movement step of pixels by 2 lets say (2.0 pixel step per loop) I found that the frame timer interval should be around 125ms. How can I get the frame timer interval by the movement step of pixels? In cases where the movement step can anything between 0.1 to 4.0 pixels.
I am creating a bulk media converter. In order to do this I need to go through each line in a list box one after the other and run the conversion function. I am trying to use the following:
For Each item In listVideos.Items conversion code Next
However this makes the program want to convert all videos at the same time... is there anyway to get the program to convert one video and then after the conversion code is completed to move to the next one?Should also be noted that I am using FFMPEG for this project.
I am learning VB 2008 Express Edition to solve the following issue: how do I put the color of each pixel in a table, allocate a code (from 1 to 256 in the case of a 256 colors picture) to each different colors and print these codes at the right place on a grid? A few years ago, I had a basic knowledge of VB6 but VB6 being not compatible with Windows 7, I had to install a new version, VB 2008 Express edition, version that I don't know at all!
I have a few questions reguarding converting a Access program to a sql/vb.net program. I know these are vague questions, so feel free to give vague answers.
NOTES: I have a solid unstranding of SQL and VB.net. i have little Access experience, but i would be working with the individual who created the access program. I also don't have alot of experience in converting on program from one language to another. Most of my experience is in new programing.
[Q1] Is their a general rule of thumb when converting/recodeing on how long it should take? i.e. if this project would take me 40 hours to write my self from scratch it would take me 30 hours to recode into another language?
[Q2] What type of problems do i need to look out for when working on projects of this nature and being inexperinced?
I have developed some programs for processing and issue-coding electronic documents. I am teaching myself how to work with SQL Server because I want these programs to work with electronic documents imported into SQL Server as opposed to messing around in a folder stuck on the desktop, for example. From there I want to expand on the program so that it is a network enabled program.
i`m trying to find in cm or mm the area of a frame (capture image).The picturebox has dimensions height:456 and width:553 PIXELS.So the total number of pixels are 456 x 553 = 252,168
If i compare image 1 with image 2 i can locate and draw a rectangle around that area of pixels that are different.i can get the width and the height of this rectangle in PIXELS.e.g Height:49 Width:33 PIXELS
How can i covert these into cm or mm. What i need to know for the conversion?
I know dpi: dots per inch but what`s the value for my rectangle?
I'm trying to convert a program from VB6 to DOT NET. In my original program I have a menu array which was simple to create.I simply named each menu element the same name and assigned each a different Index property.In DOT NET, there is no Index property and trying to create a second menu item with the same name generates an error. I have been unable to find any info that helps me transfer the functionality to DOT NET.
Can someone help with my struggle to make the leap to DOT NET?I'm also trying to convert use of the MSHFlexGrid in VB6 to the DataGridView tool in DOT NET and this is driving my to distraction. I've figured out some things already with lots of web searches but selecting a column to sort and sorting it still eludes me.
Can anyone can convert this SQL script in to a visual basic source code?..I know how can i do that in executing a stored procedure without parameter.But I have a hard time doing it with stored procedure with parameter.[code]....
I would like to believe that this code will display a horizontal line halfway across the PictureBox pbxData. In fact, what it does is create the BitMap and then blow up with a memory violation when trying to copy the BitMap into the PictureBox. The code that alters the array is commented out because I don't know how to address the elements of the array.
how to make this into useful code?
Imports System.Runtime.InteropServices Public Class Form1 Private b1 As Bitmap