|
I want the code to load an image and it must show that, it is color image(or) gray scale image.. in a faster way..
Thanks,
Sukesh
|
|
|
|
|
What's a gray scale image?
Gray is a color, so why not always report color?
|
|
|
|
|
Member 8652316 wrote: in a faster way..
You will have to look at all the pixel colors, and it is not "fast".
One way to check if the image is grayscale, is if the RGB components of each pixel are equals to each other.
Red == Green == Blue.
M.
Watched code never compiles.
|
|
|
|
|
Thanks for your response i used this logic also.. but it is slow..
|
|
|
|
|
Faster than what?
What do you mean by 'greyscale'?
|
|
|
|
|
Member 8652316 wrote: I want the code
Don't ask for code. Ask for ideas instead.
|
|
|
|
|
I want Salma Hayek. We're both going to be disappointed tonight.
|
|
|
|
|
|
If I have several versions of the same DLL in the GAC which I always encounter.
When my application run, which version is selected to run if I did not specify which version of the dll to be used in the .net application.
Thanks.
|
|
|
|
|
When you specify a DLL in a project (web or windows) the version is also specified in there. I.E.:
<compilation>
<assemblies>
<add assembly="System.Data, Version=1.0.2411.0,
Culture=neutral,
PublicKeyToken=b77a5c561934e089"/>
</assemblies>
</compilation>
This is the version selected by your app.
"Whether you think you can, or you think you can't--either way, you are right." — Henry Ford
"When I waste my time, I only use the best, Code Project...don't leave home without it." — Slacker007
|
|
|
|
|
I don't think that answers the question. The question states, "if I did not specify which version"; what you show appears to specify the version.
I also notice that when I look at the properties of a reference (in VS) I can set Specific Version to true or false, I've always seen it as false, so which version will be used at run time?
Plus, as for me, I generally compile at the command line and don't use VS and its project files; so which version is used then?
|
|
|
|
|
I think it's the highest version which is compatible with the version of the .Net Framework you're compiling against.
|
|
|
|
|
You can of course actually get the version at run time. So you can run your app and then print it.
|
|
|
|
|
Hi,
I would like to know how to develop a QMS software (Queue management system) similar to the one used in banks and other companies.
It's basically a database application which I have no problem with it..
Also, I don't think there will be a problem displaying the queue on the screen as I am going to use VGA extender and display what every is showing on a Multimedia PC).
But my only concern is how to announce the number? so if the next is number 322 which supposed to go to room 5 it should be announ ced saying Ticket 322 Room no# 5
can anyone quide please..
Thanks in advance..
|
|
|
|
|
Well, the easiest way is to have each number as a sound file and just play the relevant sound files.
|
|
|
|
|
To add to Pete reply, you could use the Speech Synthesis built into .NET:
SpeechSynthesizer speak = new SpeechSynthesizer();
speak.SpeakAsync("Number 322 please go to room 5");
You will need a reference to "System.Speech" and a using System.Speech.Synthesis statement.
It isn't perfect, but it is understandable!
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
I have a script in python.
I would like to call it from a winform in C#, is it possible? and how?
Thanks
|
|
|
|
|
If it works for you from a "command prompt", then Process.Start() can handle it.
|
|
|
|
|
Thanks.
and if I want to call a single function from the script, is there a way?
|
|
|
|
|
If you know how to do it from a "command prompt", then Process.Start() can handle it.
|
|
|
|
|
no I don't know, can you explain please
|
|
|
|
|
I can not.
|
|
|
|
|
I think you can. Because from Csharp we can call another dll's functions by importing them with DllImport. However your python script should be a dll that registered to the system once
|
|
|
|
|
do you know how can I turn the python script into a dll.
Or should I forward the question to the phyton forum?
|
|
|
|
|
I don't know how to do that but, if you know what that pyhon script do, you can write it yourself in csharp as a dll file.
|
|
|
|