|
The answer doesn't change. If you want to know the single color, then you can grab the top left pixel. If you want to know one of the many colors, it's impossible to work out which one you want, unless you want one at a specific location, or you want the one that occurs the most, or the least, or some rule like that.
My image processing articles show how to look over an entire image, GetPixel is fine for grabbing one value.
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 )
|
|
|
|
|
My customer want that either the image is blue-ish or not.nothing else
|
|
|
|
|
What is "blue-ish"? Do you mean something like calculate average color and if its close enough (given some metrics) to blue, it's "blue-ish"?
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
blue-ish mean in blue color.
I want to know either the given image(not background) is in blue color or not????
example:
suppose there is a bmp file ,in which a cartoon is displayed.
I want to know the color of cartoon.
Ragards,
|
|
|
|
|
Well, you can iterate over the image and workout how much blue is in it, compared to red and green, that's easy. How accurate it will be compared to what you'd visually say is blue enough, is another question, but you can break it down into a task that can be processed. Read my articles for how to iterate over an image.
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 )
|
|
|
|
|
I need to implement drag and drop with some files between a database and the desktop. The problem is that when dragging from the server to the desktop I don't have an actual file to set the data object. I'm looking for something like "delayed rendering" or something else which would allow me to download the file after the user dropped it.
Mihai,
|
|
|
|
|
Hi,
I used "Setup and Deployment", and I made Installer Patch I was succssesfull 70%.
But Crystal Reports Suport files are not beeing included. because my little project is belonged with two report which are designed in Crystal Reports.
* I am using VS 2005.
Thank you
-- modified at 5:52 Monday 28th May, 2007
|
|
|
|
|
Hi,
I need to reduce the data access time, while displaying data in the drop down list. actually the problem comes when i have more than 10,000 records and i try to bind the data with a drop down list. plz help me out....
Thanx
|
|
|
|
|
How is a drop down list with 10000 items useful ? You can't speed it up, your overall UI design is broken.
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 )
|
|
|
|
|
Frankly, if you have 10,000 items in a drop down list, your biggest problem is not that it takes time to populate it, but that you force the user to select anything from it.
"Plz" rethink your user interface.
---
single minded; short sighted; long gone;
|
|
|
|
|
ROTFL - it's funny to me how often you and I give basically the same advice, within a minute of one another.
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 )
|
|
|
|
|
A new software with a variety of cool features has been introduced recently:
- Supports multiple technologies (currently Zwave, especially Insteon, and X10). HomeZIX enables automation features from different technologies working together to achieve broader functionality for your home automation.
- HomeZIX includes everything to compose, compile and run automation logic in C#, VB, the most powerful and popular programming languages. HomeZIX also makes it simple enough so that you don't have to know all about C#, VB programming. With just a few simple lines of code, you can create very sophisticated control automation.
Everyone can download free here http://www.automationvista.com/Default.aspx
and start your smart macros to automate your home.
http://www.automationvista.com
|
|
|
|
|
Your post will quickly disappear, as people vote it spam. If you want to advertise your product, contact the site admin, who will be happy to provide rates.
Or if you're giving away your source code, you can write an article on it.
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 )
|
|
|
|
|
Amazing - That person was a member of Code Project for 2 years and 7 months and this is their one and only post.
|
|
|
|
|
tooltipAA.Show("----tooltip" , button);
Application.DoEvents();
System.Threading.Thread.Sleep(2000);
tooltipAA.Hide(button);
this code shows tooltip on button ,similarly i need code for tooltip on menu item
|
|
|
|
|
Menu items do not have tooltips. I've never seen one.
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 )
|
|
|
|
|
how to show ballons tooltip on menubar
|
|
|
|
|
try showing it on the menubar but with position offset so it'd look like it's the button's tooltip
life is study!!!
|
|
|
|
|
I want to create a user control in which a button is there now when I am clicking the button it has to invoke some event which has to be handled by the form which is using this control.
Same task in vb can be achieve easily as follows:
In the user control
public event MyEvent()
...
public sub Button_click(byval Sender as Object...)Handles Button1.click
raiseevent MyEvent
end sub
...
In the Front end
public sub USercontrol_MyEvent() handles USercontrol.MyEvent
...
end sub
In C#, is there any option like this
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: In C#, is there any option like this
Of course, see, for instance http://msdn2.microsoft.com/en-us/library/aa645739(vs.71).aspx[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thanks for your immediate reply.
I got the code I will try this in my application.
I will get back to you if I want any more clarrification
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
You seem to have a tendency to not RTFM first and asking concrete questions afterwards. This is considered rude, please stop it!
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
|
How can we use printdialog in an application?
|
|
|
|