|
why not just use the add method to add your object.
Try extending the IList Interface. It will help you
class MyClass : IList
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I'm quiet new in c#, Now I'm try to develop a HR management program and this application need to have a report to show and print out to user, and there are more than one type of report that available for my user to choose, all the user have to do is just choose which report he/she like, So I want to know is there any easy tool to do a report? I try to use crystal report but I have to make a file name .rpt but in my case I need many report ,so do i have to make many .rpt file? or is there any other way to implement this? And can i use sql command with each report? if yes how? Please give me some suggestion . Thanks... I use VS.Net 2003 And SQL Server 2000 .
|
|
|
|
|
do crystal reports or something.
You can use the printing namespace but would take forever
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I would like to know why we write this formula to change from color to Grayscale picture
The formula is p[0] = p[1] = p[2] = (byte)(.299 * red + .587 * green + .114 * blue);
thanks in advance
haitham
|
|
|
|
|
The different colors have a different brightness, red and blue are perceived darker as darker colors. I assume it has to do with the fact that red and blue are on the ends of the visible spectrum while green is in the middle.
regards,
rob tillaart
|
|
|
|
|
i know that this code convert the perceived bytes of the RGB to be within the domain 0-->255 and the rgb saved as 24byte per pixel i.e 3 * 8 bytes in other words red take byte blue takes byte etc so my question why we multiply the red color by the number (.299) specifically and of course the remaining numbers
thanks for ur attention.
haitham
|
|
|
|
|
Converting a image to a grayscale has no standard. Mostly on the internet you will find this forumla givven by the NTSC standard
GS = 0.3*R + 0.59*G + 0.11*B
These scaling values (0.3, 0.59, 0.11) can variate. Their main purpose is to sum up to a property (luminance) of the givven color. The final color is from the grayscale because you set all the 3 bytes to the same value.
Try using other scaling values in your ConvertToGrayscale procedure and observe the diferrences.- of course that the standard values haven't been found through experimentation, a good image processing skil is required and if I m not mistaking phisics is needed too in order to get to a such result.
protected internal static readonly ... and I wish the list could continue ...
|
|
|
|
|
|
You know they provide an imaging namespacing to do this math so as specifications change your code will not.
And the Color object can convert values for you
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
DO u mean that the color object consists a method to convert the picture from color to grayscale or any specific format?
i didnt try it yet but i think that it will be slower than we handle this ourselves
thanks for ur help
haitham
|
|
|
|
|
no,but there is an imaging namespace that would be more effecient, unless you do the processing in C++
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
how can i know the capabilities of the imaging name space
and i want to know also if there is any book talk about the image processing in c# or handle the image processing methods of matlab in c#
thanks in advance
haitham
|
|
|
|
|
a link to using matlab http://www.codeproject.com/dotnet/matlabeng.asp[^] in c#
Just create an image and use the System.Drawing.Imaging namespace.
Use your Object Browser to view the objects you can use.
Nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
hello everybody..can someone help me in finding the source code in c# for my major project..my topic is "IMPLEMENTATION OF VIRTUAL PRIVATE NETWORK USING LOGICAL TUNNELING"..actually i found a software on net similar to my project..the name is AccessPoint SSL VPN software..but i am not able to download the toolkit version 1.1 from freedownloadscentre..can someone please help me out..thanx in advance..God bless u all..
spider
hi guys i am spiderman
|
|
|
|
|
I would have thought that VPN software would more commonly be found lower down than C#. I would have said that implementations would most likely be written in C or C++ and be written as a driver rather than in a high level C# application.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
|
|
In Windows forms application, while using Combobox, is that possible that I use text to display while in background for storing those values, i use numeric values and vice versa?
Thanks,
Sandeep
+919891027854
|
|
|
|
|
I'm not 100% sure, but I'd take a look at the DisplayMember and ValueMember properties of the ListControl that might be what you're looking for.
- Aaron
|
|
|
|
|
Yes, I am looking for the same . But how can we use this property in a Combobox?
Thanks,
Sandeep
+919891027854
|
|
|
|
|
I have a Hashtable. I want to display the key names of that Hashtable in Combobox whereas I want to use corresponding key values as ValueMember of that Combobox
Thanks,
Sandeep
+919891027854
|
|
|
|
|
I don't know if you'll be able to do it with a HashTable as the ValueMember and DisplayMember properties work in conjunction with the DataSource property, which only accepts IList (list ArrayList for example) and IListSource. What you could do is change your HashTable to an ArrayList that holds a user-defined type. If you look at ListControl.ValueMember[^] it has a good example.
- Aaron
|
|
|
|
|
Hello,
I am having trouble with creating a progress dialog box. I have to retrieve some information from a database and l want to display a dialog box with a progress bar, that increments the time it takes to get all the data.
//Click retrieve information from the database.
//Display dialog box until all data is retrieved.
//Display the data in the datagrid.
I am having trouble with the dialog box part. Is there an easy way to do this.
Many thanks in advance,
Steve
|
|
|
|
|
Take a look here[^]. Even though it deals with ADO.NET v2.0, it's quite similar to your case and it explains how to increment the progressBar control according to the records in your table.
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
send me huffman coding in c#
latif ullah
|
|
|
|