|
I am doing scanning of pixels and replace the middle pixels with the median of all its value.
Doing filtering of noise in image like bitmap or JPEG etc.
|
|
|
|
|
My series of image processing articles in C# on this site includes a noise filter, if I remember correctly.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|
|
Hello,
I want to display text in a label vertically. Can anybody suggest how to do this.
thanks,
Chito
|
|
|
|
|
I dont know if you can use a Windows.Forms.Label to do it. I think you will need to use a StringFormat object and the Graphics class to draw it yourself.
check out this [^] MSDN link. It may be exactly what you need.
What Would Uncle Steve Do?. -Michael Martin
|
|
|
|
|
One thing you can do is to decrease the width of your label to width of a character, and the height of your label to your need! and you will see your text, vertically !
I hope this helps!;)
Regards
|
|
|
|
|
How to prevent messages with AddMessageFilter() method of Application class? "specially ctrl + alt + del"
Regards
|
|
|
|
|
Meisi, It depends on what you are trying to accomplish.
CTR + ALT + DELETE has a very high priority in Windows and is not the easiest to intercept. If you plan on having this form be the only thing a user is allowed to see you might be better off authoring your own GINA in C++ and replacing the one that comes with the system. Look up "gina" on msdn for more info.
What Would Uncle Steve Do?. -Michael Martin
|
|
|
|
|
I've been looking for some sample C# TAPI code and S.S. Ahmed's sample project is the best I've seen for wrapping the TAPI calls in C# and demonstrating how to dial. However, I'd like to figure out how to detect a ring in and get the callerid information so I can update a database with incoming calls. I'm not a TAPI guru and the calls are less than obvious. Is this possible and does anyone have any sample code that demonstrates this? Thanks.
Ron Ward
|
|
|
|
|
Anyone play with this? How? Derived class? What's the base type?
It contains all the facet information when a DataColumn is mapped to an XSD simple element. It would be nice to have this available, but of course it's a protected member. In fact, it's not even documented in MSDN. Would be really handy for what I'm doing.
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka
|
|
|
|
|
I sort of answered my own question. It's a System.Data.SimpleType class, but it's INTERNAL.
Why do they do this???
Along with DataColumn.XmlDataType, which would have been really useful too!
So how do I snag internal classes??? There must be a way!!!
Jerks. All this useful information, and you can't get at it because they want to keep it for themselves.
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka
|
|
|
|
|
I want to keep people from recreating my "source" code via the .NET
disassemblers/decompilers that are already out there (Java had this
problem too but at least the variable names weren't the same as the
original when decompiled back to source).
For a scary example of one a .NET Decompiler:
http://remotesoft.com/salamander/index.html
(You can test their disassembler on your own code on this site)
This tool will recreate your original source code minus comments.
I have a question: Has anybody found a way (e.g., a build flag)
to make decompiling of .NET assemblies more difficult besides paying
a $1K for an MSIL obfuscator?
|
|
|
|
|
|
Here is a odd one. I want to create a separator on a form:
Like the one in this picture
The only thing is I don't know if it is a disabled label control with underscore text, a groupbox only partially shown, or something completely different. Does anyone have any idea on this??
Thanks,
Ethan
-------------------------------------------
One good thing about repeating your mistakes is that you know when to cringe.
|
|
|
|
|
The page cannot be displayed... Link does not work....
Who is this miscrosoft, and what devilish plans have they for us?
|
|
|
|
|
|
|
I always use a Label with a 3D border and minimum height.
|
|
|
|
|
I have seen both styles you guys described; the information has been helpful.
Ethan
-------------------------------------------
One good thing about repeating your mistakes is that you know when to cringe.
|
|
|
|
|
I've noticed that when I read an XSD into a dataset, it doesn't create a "meta-table" to encapsulate global elements. Is this something I don't understand about XSD/XML, or is something having to do with the way .NET datasets handle an XSD?
For example:
<xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
<xsd:complexType name="PurchaseOrderType">
...
creates the "purchaseOrder" table in the data set with the various elements of the complex type.
But if the schema also contains a global element of a simple type:
<xsd:element name="AString" type="xsd:string"/>
this is nowhere in the dataset (because it's global data).
However, isn't it valid XML to say:
<AString>foobar</AString>
???
Confused!
Marc
|
|
|
|
|
Marc Clifton wrote:
this is nowhere in the dataset (because it's global data).
Same thing happens when generating a TypedDataSet. I would be nice to have. Nice quick and easy config files.
Who is this miscrosoft, and what devilish plans have they for us?
|
|
|
|
|
I would be nice to have. Nice quick and easy config files.
??? Can you elaborate on that?
BTW, the reason I'm asking this bizarre question is that I'm writing a follow-up article on my XSD Schema Editor--I want a generic XML editor that dynamically generates the appropriate GUI controls and does validation based on the XSD, and I've been looking at .NET's dataset as an in-memory container for the data. Plus it seemed like an easy way to read and write the XML.
(And all of this simply to finish my third AAL installment!)
Any thoughts?
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka
|
|
|
|
|
Marc Clifton wrote:
??? Can you elaborate on that?
Just basically having "static(read singleton)" global elements in a dataset. So it can be easily read/write to xml/file (perhaps seperate or along some data). These would be reflected via properties in the dataset's "global" scope.
Marc Clifton wrote:
I've been looking at .NET's dataset as an in-memory container for the data. Plus it seemed like an easy way to read and write the XML.
I have looking at somehtin similar (without too much hassle) to manage web controls from, similar to a CSS file, but sitewide for my custom controls (those autogenerated ones;P).
Marc Clifton wrote:
And all of this simply to finish my third AAL installment!)
You dont stop do you? I have 2 weeks before university start, still looking to squeeze in 1 article, but I have no ideas...
Cheers
Who is this miscrosoft, and what devilish plans have they for us?
|
|
|
|
|
Here is the situation:
I am writing an application that needs to detect a specific USB MMC card reader connected to the computer. I need to do this so that I can make the default save path for my application automatically be the card reader.
Possible Solution to Try:
An idea that I have is to check each drive on the computer and when the name of the drive matches the name of the reader I will know I have the right drive. I don't know how to get the name of the drive programatically but on my Windows XP Pro Machine I...
1. Open Windows Explorer.
2. Right click on the reader (labeled "Removable Disk (F)")
3. Select Properties.
4. Select the Hardware tab from the Removable Disk Properties.
5. Under the hardware tab there will be a list of "All disk drives:". In this list the specific name of the reader is listed as "eUSB Secure Digital USB Device."
"eUSB Secure Digital USB Device" is the name that I need. This name is also displayed under "Disk Drives" in the "Device Manager".
Suggestions:
1. Do you think this is a good idea to try?
2. Do you know how to do an part of the above proposal programatically?
I would like to stay in C# as much as possible but I have a feeling this is only going to be able to be done using the Windows API or some other non-.NET way.
Thank you for your help.
Mark Sanders
sanderssolutions.com
|
|
|
|
|
Mark Sanders wrote:
1. Open Windows Explorer.
2. Right click on the reader (labeled "Removable Disk (F)")
3. Select Properties.
4. Select the Hardware tab from the Removable Disk Properties.
5. Under the hardware tab there will be a list of "All disk drives:". In this list the specific name of the reader is listed as "eUSB Secure Digital USB Device."
I can get the same type of information using WMI about my IDE drives. I hope it works for the USB device:
private void button1_Click_1(object sender, System.EventArgs e)
{
String scope = "\\root\\cimv2";
ManagementScope ms = new ManagementScope(scope);
ObjectQuery oq = new ObjectQuery("Select * from win32_diskdrive");
ManagementObjectSearcher mos = new ManagementObjectSearcher(ms, oq);
ManagementObjectCollection moc = mos.Get();
foreach(ManagementObject mo in moc)
{
txtOutput.AppendText(mo["caption"].ToString() + "\r\n");
}
}
Of course you must have WMI on the system.
Matt is a network administrator for an insurance company in the midwest. He is shamelessly looking for Windows programming side work.
|
|
|
|
|
Thank you for your reply. I will mess around with your example to see if it gives me any other leads but I don't think I will be able to use it for my application. The application I am writing needs to be able to run on any client computer running Win98, Me, 2000, or XP. I don't think I will be able to guarantee WMI on the computer in which the app is installed.
I don't know much about WMI, so if my statements above are not true let me know.
Mark Sanders
sanderssolutions.com
|
|
|
|