|
|
Hey,
Is is possible to find the average (dominating) color in an image. For example it there's mostly white in the image, it should Messagebox.Show("Average Color: #FFFFFF") or MessageBox.Show("Average Color: R=255 G=255 B=255).
Thanks,
|
|
|
|
|
It depends how you define average color
|
|
|
|
|
There is alpha parameter. From here u can get exact decimal no.
|
|
|
|
|
Loop through the pixels in an image and see the results. A quick hack is to scale a bitmap to 1 pixel and read the color of the only pixel which should be the average and the results will depend on the scaling algorithm.
I think your question is what is the mode color?
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
HI,
Plz advice me to learn c# and .Net packages.
Guide me the way to start learning.
Priscribe the books or links to follow.
Tell the order of learning packages like can i learn ASP.Net without knowing c#
Awaiting for you valuble guidence.
Thanks,
Preethi.
|
|
|
|
|
Preethi_123 wrote: I have 3 years experiance in VC++, MFC
Honestly, Seeing your questions I kinda doubt your experience.
Plz advice me to learn c# and .Net packages.
I advice you to learn .Net
Guide me the way to start learning.
Buy a book
Priscribe the books or links to follow.
See amazon, there is a rating for each book I think, but if you have a good basics book, you'll learn the rest from msdn.
Tell the order of learning packages like can i learn ASP.Net without knowing c#
See this tells me you don't have a clue about .Net. .Net is language independent. You can create .Net winforms and webforms with VB, C++, C# and I even heard you can do it with COBOL if you really like too. The thing is that the only valid options you have considering your experience is C++ or C# and I would go for C#. ASP.Net is more complex then winforms and it's easier to develop if you can keep your mind off pointers and garbage collection.
hope this helps
|
|
|
|
|
Thanks, I dont know Anything about .Net that is why i asked these questions.
|
|
|
|
|
Start with C#. It's the main language for .NET, and is a more modern language than C++. While studying C#, you will gradually encounter more and more .NET concepts.
Start with any beginning book on C#. Then "Effective C#" by Bill Wagner is a good second book. It covers key points that a beginning book will gloss over.
There are three versions of C# in current use. After the first two books above, "C# in Depth" by Jon Skeet covers C# versions 2 and 3, assuming you already know version 1.
ASP.NET and ADO.NET can be used from any .NET language, and are used to make web pages and access databases.
|
|
|
|
|
What is the difference between AddPrinterConnection and AddPrinter.
And when do you use one instead of the other?
Thanks
|
|
|
|
|
please get me component and other requirement for this project.
|
|
|
|
|
no
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
succinct, to the point. its got my 5!
|
|
|
|
|
Why? Do your own homework.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Component = Phone, You
Requirement = Phone Rings, You Answers.
Now go start doing your assignment...
|
|
|
|
|
Gees...........Can I also get somebody to do my work for me?? I don't think so............Is this another Easterner??
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
Hi All
**********Programmin Challenge**************
I am developing a desktop application in C#.Net which opens
another form of an unmanaged application. The WinForm(of unmanaged application) has number of controls on it .Textbox has a focus when application starts.I just want to focus on the third control which is a button by programmatically pressing the tab key
SendKeys.SendWait(Keys.Tab.ToString()); //for taking focus on second control
SendKeys.SendWait(Keys.Tab.ToString());
//for taking focus on the desired button which has a tabindex=2(0,1,2)ie third control
It is not taking the focus from the textbox to the button but instead typing in the textbox "Tab".
Thanks in advance
Sandeep Kalra
I am the ONE
|
|
|
|
|
Sendkeys.Send("{TAB}")
and arrange your tab order in the IDE
Life - Dreams = Job
TheCardinal
CTC-RDG
|
|
|
|
|
If you have created an application which uses database, and installed it for your client. Next you have updated the application and updating the database structure. So the client's database and the newest database has different structure. What is the ideal way to update the database structure, and still using client's previous entered data. I use C#.
|
|
|
|
|
This has been discussed a lot; it's a common scenario. Here's a thread on the MSDN forums that discuss dealing with SQL schema changes from the C# side of things.
|
|
|
|
|
I'm currently creating an application that reads the structures of old and new database, creates insert query and executes it to the new database from C# application. This means I have to executes lots of rows. I'm looking for a better way if any.
|
|
|
|
|
Where can I find sample codes showing implementation of Monte Carlo rabin_karp search NOT just a pseudocode.
Thanks
|
|
|
|
|
Angelinna wrote: Monte Carlo rabin_karp
What? Honestly, this is one of the strangest sounding questions I've heard in the last 4 years in this forum.
A google search for monte carlo rabin_karp doesn't produce any results.
Can you explain what it is? Then maybe we can help you.
|
|
|
|
|
This is a pseudocode for Monte Carlo rabin_karp algorithm.
Input Parameters: p,t
Output Parameters: None;
Mc_rabin_karp_search(p,t)
{
m = p.length
n = t.length
q = randomly chosen prime number less than mn2
r = 2 ^(m-1) mod q //computation of initial remainders
f[0]=0
pfinger = 0
for j = 0 to m-1
{
f[0] = 2*f[0]+t[j] mod q
pfinger = 2*pfinger + p[j]mod q
}
i = 0;
while(i + m<=n)
{
if ( f[i] = = pfinger)
println (“Match at position”+i)
f[i + 1] = 2*(f[i] – r*t[i]) + t[i+m]mod q
i = i +1
}
}
What am seeking is a sample of a working code to help me understand it actual implementation.
Thanks
|
|
|
|
|
I would suggest trying the Mathematics and Algorithms forumn. I'm sure somebody on there might know what you talking about.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|