|
How do I compare the colors of the individual pixels contained in an image to the grayscale values in order to sort the pixels from 0-255.
I need help men
tony-yeyo
|
|
|
|
|
My image processing algorithms articles include the code to convert an image to greyscale. they are on Code Project, just search the articles for my surname - graus.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
Please find which Cause the problem
Response.Redirect("PrintQuote.aspx?Print=" + grdVwAgentQuote.SelectedRow.Cells[7].Text+" & Quote="+TextBox1.Text);
dataPrinting = adapterprinting.GetData(int.Parse(Request.QueryString["Print"].ToString()), int.Parse(Request.QueryString["Quote"].ToString()));
When i just call one querystring. Its Working Fine. But if i call both the QueryString Then the Null Exception is showing on the Print. But if i pass only Print as queryString its working Fine.Please advice to solve the issue.
Regards,
A Jabeer Ali
|
|
|
|
|
When you try to read the value using the name "Quote", you will not find it as the name is " Quote".
Remove the extra spaces around &.
Also, you should use Server.UrlEncode to encode the values before you put them in the query string.
---
single minded; short sighted; long gone;
|
|
|
|
|
Can you send some Sample Code for Server.URLEncode. Because it gives error to me
Regards,
A Jabeer Ali
|
|
|
|
|
Example:
Response.Redirect("Page.aspx?something=" + Server.UrlEncode(someValue) + "&other=" + Server.UrlEncode(otherValue));
---
single minded; short sighted; long gone;
|
|
|
|
|
|
diddy34 wrote: I need help men
I'm wondering if a female read your question and knew the answer, but because of that exclusionary comment decided not to help you.
|
|
|
|
|
Thanks for your comment. And if I've offended any woman by what I said earlier, I'm sorry cos I didn't mean it in any way. So this goes for the women.
We all need each other to survive.
tony-yeyo
|
|
|
|
|
Does any one know how to get a remote web server to transfer its Certificate (X509Certifcate) to the local machine using Sockets? I need the public key from a given web server.
Forever Developing
|
|
|
|
|
|
I know.
I have given up hope. I think I am going to the route of setting up an SSLSocket just to get the certificate information from the web server. This seems like a waste of resources to me.
~Nick
Forever Developing
|
|
|
|
|
Nicholas Cardi wrote: I think I am going to the route of setting up an SSLSocket just to get the certificate information from the web server. This seems like a waste of resources to me.
What are you talking about? How else do you expect to get it, magic? Maybe you need a career change, you could call youself "The Great Cardi".
led mike
|
|
|
|
|
led mike,
The public key exchange for SSL is done before the SSL connection is established. I belive this is how the protocal works (Maybe I'm wrong). That is the only portion of the SSL protocal that I am looking to implement. I not really interested in secure communication or ecrypted sockets. I just need the server to transfer me its SSL cert.
~Nick
Forever Developing
|
|
|
|
|
|
Mike,
I am aware of how the SSL protocal works. What I am looking for is if someone on has implemented just the Handsake or X509 Certificate exhange portion of the SSL protocal. As the title of this topic suggets.
~Nick
Forever Developing
|
|
|
|
|
dear you,please help me,I am findind the class of C# about http 1.0,I want decrible this protocol
if you have source or know about the class of library,please help me
help me
|
|
|
|
|
|
Im trying to be able to click a button and have qtys added and deducted from my db. I have a update query that works fine when I execute it. The problem Im having is using the query in my click event. Heres the code:
<< private void btn500pballs_Click(object sender, EventArgs e)
{
this.inventoryTableAdapter.UpdateQuery500(this.paintballDataSet.Inventory);
ListViewItem item1 = new ListViewItem("Paintballs 500ct");
item1.SubItems.Add("$12.00");
listViewmain.Items.AddRange(new ListViewItem[] { item1 });
}
>>
I keep getting an error
No overload for method 'UpdateQuery500' takes '1' arguments.
Any help, please?
Jon Henry
|
|
|
|
|
UpdateQuery500 is some function that you defined? The error No overload for method 'UpdateQuery500' takes '1' arguments sounds like the function call
this.inventoryTableAdapter.UpdateQuery500(this.paintballDataSet.Inventory);
isn't calling UpdateQuery500 with the correct number of parameters.
|
|
|
|
|
Yeah the Updatequery500 is an update statement that increments qty sold by 1 and decrements qty on hand by 1 in a specific row. What would dictate the number of parameters?
Jon Henry
|
|
|
|
|
The number of parameters is dictated by the functions' definition. You need to find where the function is defined and check there to see what else you need to pass into it besides whatever this.paintballDataSet.Inventory is.
Ex.
private void btn500pballs_Click(object sender, EventArgs e)
{
}
requires you pass in an object and EventArgs as parameters when calling it (although it looks like an event handler, so you shouldn't be calling it directly).
As others have said this is pretty basic. If you're really that new to C#/programming in general then you might want to check out some primer articles here[^] before you dive into databases and other more advanced stuff.
|
|
|
|
|
Jon Henry wrote: No overload for method 'UpdateQuery500' takes '1' arguments.
What's the problem? Do you understand what that error message means?
led mike
|
|
|
|
|
Actually I dont, Im a novice.
Could you explain the 'arguments' thing?
Jon Henry
|
|
|
|
|
Jon Henry wrote: Could you explain the 'arguments' thing?
I think you should learn basics of programming first and then try to update database. IMHO
|
|
|
|