|
Megidolaon wrote: writer.Flush();
one remark: you oinly need to flush when you don't close right away; here you want to close, so don't flush, there is no need to. However, you should close nested things in reverse order: since you opened ns and then writer, you should close writer, then ns. That way, no flush is required.
|
|
|
|
|
Hello, i have a problem regarding threshold filter. The code as below:
<br />
private void button3_Click(object sender, EventArgs e)<br />
{<br />
<br />
<br />
Threshold filter = new Threshold(100);<br />
filter.ApplyInPlace(threImage);<br />
pictureBox3.Image = threImage;<br />
<br />
}
However i have this error " Source pixel format is not supported by the filter. " when the button is being invoked.
anyone know whats the problem?
must the image i apply the filter to be a greyscaled one?
|
|
|
|
|
Presumably you are using the AForge Threshold class[^] - it's the only one I could find on the internet that has identical code to your sample - which doe indeed state it should be a greyscale bitmap. Which makes some sense.
It might bne easier if you point your questions at the folks who wrote the code? They are more likely to know the answers to questions on their own package that a general site like this...
BTW: In future, if you are using a package, name it. It makes life easier for us all.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
|
Did you gave a question or did you just want to post a link and an abscure piece of text for nothing?
|
|
|
|
|
Ah the classic compile error problem. Try one of the following...
IMPORT EXCEL FROM SQL;
EXPORT EXCEL TO SQL;
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi,
I've class, Node, with the following properties and these are the attributes of XML element.
XmlAttribute("id")]
public string Id
{
get { return m_id; }
set { m_id = value; }
}
[XmlAttribute("char")]
public string Char
{
get { return m_ch; }
set { m_ch = value; }
}
When this is serialized, it created the xml elements as below
<Node char="_" id="S_SEPARATOR">
<Node char="" id="S_BLANK">
The requirement is, if id is "S_BLANK", it shouldn't show "char" attribute, as below.
<Node char="_" id="S_SEPARATOR">
<Node id="S_BLANK">
Please guide me to get this output. Thanks in advance.
|
|
|
|
|
Hi,
you can use the ShouldSerialize* pattern
where * is the property name that's supposed to be serialized
public bool ShouldSerializeChar() {
return !"S_BLANK".Equals(id);
}
Cheers
Manfred
|
|
|
|
|
Thanks for your reply. Where should I call ShouldSerializeChar()?
|
|
|
|
|
This function is not meant to be called by you.
It's called by the XML serializer. If the serializer
sees a property with say an XMLAttribute it knows
it should serialize it. Then it checks if there is
a method bool ShouldSerialize(Property name here).
If it finds such a method the serializer calls it
and uses the return value to determine wether it
will really serialize this attribute or not.
Best Regards,
Manfred
|
|
|
|
|
Thank you, Manfred.. Thanks alot for detailed info..
|
|
|
|
|
Voting for a helpful answer is always appreciated.
|
|
|
|
|
Sorry.. forgot to vote.. Thank you for reminding me.
|
|
|
|
|
is there is any way to get text from image like in this photo
http://whomex.com/code.pngwhomex.com/code.png
http://whomex.com/code.pngwhomex.com/code1.png
http://whomex.com/code.pngwhomex.com/code2.png
http://whomex.com/code.pngwhomex.com/code3.png
http://whomex.com/code.pngwhomex.com/code4.png
http://whomex.com/code.pngwhomex.com/code5.png
http://whomex.com/code.pngwhomex.com/code6.png
http://whomex.com/code.pngwhomex.com/code7.png
Palestine
|
|
|
|
|
Don't post the same question in multiple places - all you will do is duplicate effort and annoy people.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
yes.
|
|
|
|
|
how i can do..
do you have example?
Palestine
|
|
|
|
|
Ooh goody. You want us to tell you how to avoid a site's CAPTCHA so that you can bombard it with crap. You aren't going to get help from anybody here with an ounce of ethics in them.
|
|
|
|
|
Oh pete, you disappoint me, you honestly think he is trying to bypass a captcha system? he only wants to know how to get the text from the image. what harm can be done.......
|
|
|
|
|
I know, it's just that I put on my extra cynical underpants this morning.
|
|
|
|
|
Pete O'Hanlon wrote: I put on my extra cynical underpants this morning
Wow, great minds think alike.
I put my ones on as well, except mine are thermal cynical underpants.
|
|
|
|
|
There's no way to help you bypassing captcha's protections. Sorry.
|
|
|
|
|
Yep... use a keyboard
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
The whole point behind a CAPTCHA is to keep automation code from using the system. Sorry, but we're not going to help you get past something that someone OBVIOUSLY doesn't want to getting past.
|
|
|
|
|
Dear Friends,
I want to wrap the text that i am entering into the notepad file being generated with the help of C#.Net2008, but not able to find any method, property for the same. Like if the entered text reaches the end of the screen visible to user (while maximize of a notepad) then the cursor moves to the next line.
Could any one help me in this regard?
Thanks
Varun Sareen
|
|
|
|