|
Thanks Dave for your reply.
But GetPixel is for getting pixel from a particular (x,y) in the image.
We can iterate through the image and we can findout all the colors in the image by using that.
But i have to analyse the whole image and need to find only few colors which are unique in the image,but not the whole colors.
So i think some complex logic will be there for analysing only unique colors.
I tried some logics.But i think may be some good logics there for finding it out.
Any ideas 4 that?
Thans in Adavance.
|
|
|
|
|
That makes the problem a bit more clear. In that case, I have no idea. But, I'd probably start by researching histograms to see if they would play any part in the algorithm.
|
|
|
|
|
A method I've used in the past is Gervautz-Purgathofer octree color quantization...
Sample article[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
i have serached in google n found out the way to add print functionality to the browser.
My problem is i want to add extra data to the print other than the content of the web page.
Please suggest me for this problem.
Thanks.
|
|
|
|
|
What you could do, is use CSS and add items into your page that only get shown by a print version of your CSS. You should start with this page[^] to get an idea of what I'm talking about.
|
|
|
|
|
Hi ,
i am using axwebbrowser in a windows form application. Sorry i didnt mentioned it in my original post..
in my windows application , i have embeded the axwebbrowser and placed one button. On click of that button i am calling the below method
public void PrintBrowser()
{
object o = "";
// constants useful when printing
SHDocVw.OLECMDID Print = SHDocVw.OLECMDID.OLECMDID_PRINT;
// use this value to print with prompting
SHDocVw.OLECMDEXECOPT PromptUser =
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER;
//SHDocVw.OLECMDEXECOPT DontPromptUser =
//SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER;
if (!IsPrinterEnabled()) return;
// print with prompting user
//axWebBrowser1.ExecWB(Print, DontPromptUser, ref o, ref o);
// to prompt the user with printer settings
axWebBrowser.ExecWB(Print, PromptUser, ref o, ref o);
}
This method prompts the print dialog using ExecWB(..) method and prints the content of the web browser alone . My question is i need to add some header and footer text and also some extra texts to the content of the browser content. Can u help me out to solve thsi problem.
Thanks.
|
|
|
|
|
CoolCoder_New wrote: Can u help me out to solve thsi problem.
I've already told you what a possible solution is. Where the webbrowser is hosted doesn't matter - it's still consuming the same HTML.
|
|
|
|
|
THe problem is i dont have control over the web page. I just host the url in the axwebbrowser.
I am calling the print dialog from the axwebbrowser's ExecWb method.
can u provide me some sample as how to use that html code in C#.thanks.
modified on Thursday, February 26, 2009 2:06 AM
|
|
|
|
|
I want to write code in VB.NET in which,I want to send XML data to following link.
Here is link :
http://someWebService.abcCompany.com/smspost.asp
ex. I want to send following XML data(not file) to above URL.
<xml version="1.0"?>
<packet>
<Number>9856554877</Number>
</Packet>
What is syntaxt to send any data to any URL in VB.NET ?
What are commands used in VB.NET to send any info to URL ?
Which Library or refrences I have to use ?
|
|
|
|
|
More of a C# man myself, but the classes you'll be interested in are HttpWebRequest and HttpWebResponse. Create the former, set its verb to POST, and write your xml to the stream.
I think its in the System.Net assembly.
Regards,
Rob Philpott.
|
|
|
|
|
Last November, I was trying to do a multi client program for a Question And Answer game, the game is like this:
1. The judge (ok, this is a real people) ask a question, and then on his Master Terminal (computer-server), he click "start answer"
2. Then the participants (real people) on their own computer, can click "answer", if they want to answer that question.
3. Master terminal will show all intended participants, and the fastest one will "Flash" on both Master terminal screen and the Client screen.
4. Master terminal can also set the score and the score will be shown on (participants)client screens.
I tried to implement this with remoting at that time. But I found a couple of problems when I am implementing that. First, what I have in my mind is for remoting, the application code should not realize that they are calling remote objects or local objects, this should be done by the transparent proxy objects. It is definitely achievable without any problem when creating remote objects, calling methods of that particular objects, but when it comes to events and delegates, it is a different story. I have to make the client expose to another port to listen the event fired from remote objects, and moreover, another dummy object have to be declared in-between the remote object and the client application. (see the method shown here: http://www.codeproject.com/KB/IP/RemotingEvent.aspx?msg=2821954[^])
The use of intermediate object totally breaks the beauty of transparent proxy, and make the code became messy.
So, my question here is, in doing such project, am I using the wrong technology? Should I use WCF or the old school TCP Port listener?
modified on Wednesday, February 18, 2009 7:41 PM
|
|
|
|
|
xandy1979 wrote: Should I use WCF or the old school TCP Port listener?
Remote events using .NET Remoting were not good.
Well, you can use either, but my preference would be WCF. You may want to start with reading this[^] before you start digging into various example strewn over the Web.
|
|
|
|
|
Hi All,
Can you please help me if you know any site or any article which describes advantages of .NET 3.5 on .NET 2.0.? I need to submit an article. I couldn't find much when I googled.
like performance wise, scalability wise, developement wise, maintenance wise etc...
Thanks in advance.
Regards,
Sunny
|
|
|
|
|
Hi,
are you saying nothing useful can be found here[^]?
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
|
OMG that is freaking hilarious
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
|
Right, I know there is no CLR difference between .NET 3.5 and .NET 2.0. Please understand the question I asked for.
I need difference between them performance wise, scalability wise and benifits business wise? I know the new features in .NET 3.5.
Thanks in advance.
Regards,
Sunny
|
|
|
|
|
idhiCodeProject wrote: difference between them performance wise
You want to know if the framework became faster? It didn't, since they didn't change anything in the base, they just extended it. String-concatenations are still slow if you don't use a StringBuilder.
idhiCodeProject wrote: scalability wise
No differences that I'm aware of, as this isn't dictated by the framework AFAIK.
idhiCodeProject wrote: benifits business wise
.NET 3.5 gives you a shorter development cycle under some circumstances, but you'll have to be sure that your users have the runtime for the framework.
The Wikipedia[^] hosts an article that highlights all changes to the framework, you could use it as a base to deduce the answers to your questions.
If you don't want to post the article here, can I get a copy through email?
I are troll
|
|
|
|
|
Thanks Eddy. I will surely send a copy to you when I submit my article to my manager.
Regards,
Sunny
|
|
|
|
|
Thanks
If it's for a manager who needs to decide between the frameworks, be sure to check and highlight;
- what the most common type of framework for your users is
- the competence-level of the available developers for each framework
- whether you'll need to support any platform beyond Windows'
I are troll
|
|
|
|
|
|
If your question is urgent, why waste time posting a question here waiting for somebody to wander by? A simple google turned this list[^] up - there must be something in there you can use. Please, learn to use google before posting.
|
|
|
|
|
Hi
I am new in develoment can please any one help.
I have had menu id "Menu3" in Menu.ascx file and i have .aspx pages. Menu3 has 4 options and every option has its own sub options Here is main structure of Menu3
Report Data Operation Logout
I have two categories of users Admins and non Admins. I don't want to show "Operation" to non-admins. I need to decide at login time.I had saved admin flag in Session (user is admin or not)
but how can i disable "operation" if flag is false in .aspx page_load event.
I already include Menu.ascx in aspx pages.
I am using VS2008.
thanks
|
|
|
|
|
Take a look at using the Membership and Role providers with .NET. Set up a sitemap to control the menu that appears, and attach the Admin role to the ones you want only the Admin users to see. This[^] should help.
By the way, please ask questions about ASP.NET in the ASP.NET forum in future.
|
|
|
|