|
Hi,
Thanks for the link
It looks like I have to have
documentElements = xmlDoc.SelectNodes("//Document").Count;
to get it to work, so it starts at the root only if there are 2 slashes? I got that from the link you sent me so thanks
|
|
|
|
|
hello every one!
when i use this
SendKeys.Send("{PRTSC}");
it only capture the form or small image of it
what is the problem?!
EASY COME EASY GO
|
|
|
|
|
|
thanks but i have some programs that i made it did not capture so what do you suggest?
EASY COME EASY GO
|
|
|
|
|
sanforjackass wrote: thanks but i have some programs that i made it did not capture so what do you suggest?
How did you try capturing the screen in those programs? The same method as described in your original post?
Anyway, if you haven't read the article I recommended, I suggest you do that - I'm almost sure it will help you.
|
|
|
|
|
OK i will let you try it
but first i should send you my program run it then try to capture with your program.
does it work?
(what is your email)
EASY COME EASY GO
|
|
|
|
|
Seriously you don't expect him to sit down en debug your program? Suggesting that is quite rude if you ask me.
Do this the right way: provide the code snippet that doesn't work and let people here have a look at it.
|
|
|
|
|
dont be a smart
if you think you can solve it send me your email then i send you my program then try it,
it works good the problem is when i use the other program to get image of the desktop it does not show my program. why
EASY COME EASY GO
|
|
|
|
|
I don't want you to send me your program and really doubt anyone else in here want that either. You can't expect people to do that kind of work for you - and I still believe asking for it is rude and should be avoided. My guess is people will be less interested in helping you if you use that approach.
|
|
|
|
|
ok if you dont want to!
i will try to explain my program
the first program:
it only show the status of the battery in transparency form it is looks like only the text show
the second program:
just i said before:
SendKeys.Send({"prtsc"})
this.backgroundimage=clipebored.getimage();
it only show a small part of the desk top or only the form
when i use your programs it works but my first program does not show in it.
what is the problem?!!!!!!!!!!
EASY COME EASY GO
|
|
|
|
|
hello may i know how do i go abt getting darkest pixel from a image and apply a floodfill?
|
|
|
|
|
You'll pretty much have to iterate through each pixel and then keep the darkest one you find. You will also have to define "darkest" if the image isn't greyscale.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Bitmap objBitmap = new Bitmap(pictureBox3.Image);
for (int y = 0; y < objBitmap.Height; y++)
{
for (int x = 0; x < objBitmap.Width; x++)
{
}
}
do i do this way? if my image is greyscale how do i go about doing it? sorry i am very new to programming.
|
|
|
|
|
If I were you, I'd look at using a third party library such as AForge for this. If you must do this, then you are going to have to write unsafe code to efficiently manipulate the pixels. I'd start off by reading Christian Graus' articles here on CP on image processing.
|
|
|
|
|
The important thing is the pixel format. If you can use GetPixel on the image (so pixel format is not indexed) and you want to avoid the usual headaches of locking bits, you can use GetBrightness method for each one. If pixel format is indexed you will not be able to use GetPixel, so you will have to lock bits and get the color of each pixel from the palette before you can use GetBrightness. This little sample[^] might help you in the last case.
|
|
|
|
|
Hi,
In my webbrowser application frequently iam getting Internet Explorer Script Error.....the page not support the Jscript. I created the webbrowser application using IE Component. How to rid of this...kindly give me one solution.
krishna
|
|
|
|
|
Hello Krishna!
Sounds like a JavaScript issue so please post this question in the correct forum: "JavaScript".
It's there. I know, I've been there before .
Plus to make it easier for us to help you:
1. Reproduce the exact error message. A screeshot would be nice.
2. Give a small concise example that will enable us to reproduce that error.
Tanks,
Manfred
|
|
|
|
|
hello i am using visual studio, C# to create filter.
System.Drawing.Bitmap image = (Bitmap)Bitmap.FromFile("C:\\Users\\Pictures\\sample1.jpg");<br />
<br />
pictureBox1.Image = image;<br />
<br />
AForge.Imaging.Image.FormatImage( ref image );<br />
<br />
PointedColorFloodFill filter = new PointedColorFloodFill();<br />
filter.Tolerance = Color.FromArgb(150, 92, 92);<br />
filter.FillColor = Color.FromArgb(255, 255, 255);<br />
filter.StartingPoint = new IntPoint(150, 100);<br />
filter.ApplyInPlace(image);
however when i try to run, an error occurred, needing help!
the error is " Source pixel format is not supported by the filter."
|
|
|
|
|
The error tells you what the problem is. The PixelFormat of your image is not supported by the filter. Check the documentation to see what formats are supported and then check your code to see what the PixelFormat of the image is. In the case of the PointedColorFloodFill, it supports 8 bpp grayscale and 24 bpp colour images. If the PixelFormat of your image is 32 bpp, then you can clone it to 24 bpp and it should work OK.
Three points here:
1. The error was very specific, a quick google would have identified the cause in 20 seconds or so.
2. You need to read the documentation.
3. As this was a problem with a third party, you should have asked there first.
|
|
|
|
|
thank you for your reply. i got it.
|
|
|
|
|
HI All,
I want to know how create a TLS connection for jabber protocol using standard dotnet frame work. Thanks
|
|
|
|
|
Take a look here[^].
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
So I have been trying to take a screenshot with a windows service... don't think I really have to say I haven't been successful. I think it is because of new security features with Windows 7 that does not allow it to interact with a users session in that way?
I have tried using the built in functions for .NET and this code:
http://www.codeproject.com/Messages/1705493/how-to-take-a-screenShot-using-windows-service.aspx[^]
They just take a black screen. I have also tried setting the service to interact with desktop (still black pic).
Now is there is way I can make a service take a screen shot? Also if I can't.. do you think I might be able to make the service start a process (exe I create) that takes a screen shot and saves the file, then teh service grabs that file? I haven't tested it, but was wondering if that would be possible. Wouldn't running the process make it run under console and be able to take a screenshot?
First I would like the service to do it, but the process idea is a plan B if that would even work.
|
|
|
|
|
Jacob D Dixon wrote: I think it is because of new security features with Windows 7
There is a reason for that, think about it do you want the ability for a service to be able to take a picture of your phone. While I cannot think of a valid reason for this, I can think of plenty of malicious reason to attempt to get a snapshot of a users screen.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Well I assure you it isn't for malicious reasons. I'm working on a personal project that monitors computers to get updated information such as hardware info, software, processes, etc. We actually use a software now called LabTech (labtechsoft.com) and I noticed it took screen shots of people's machines (that have the agent installed). I was trying to duplicate that.
|
|
|
|