Fast Greyscale using unsafe code in C#





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 Next »
8
Date Submitted Tue. Oct. 11th, 2005 9:50 PM
Revision 1
Helper ses5909
Tags CSharp | Email | Send
Comments 0 comments
Send Basic Email
8
Date Submitted Wed. Oct. 12th, 2005 9:50 PM
Revision 1
Helper ses5909
Tags CSharp | HTML | String | Strip
Comments 0 comments
Strip HTML Tags From a String
8
Date Submitted Sat. Oct. 15th, 2005 5:42 PM
Revision 1
Helper ses5909
Tags CSharp | Directory | Files | List
Comments 0 comments
List Files in a Directory in C#
7
Date Submitted Sat. Oct. 22nd, 2005 5:19 PM
Revision 1
Helper ses5909
Tags CheckBoxList | CSharp | Populate | Values
Comments 2 comments
Dynamically Populate a CheckBoxList in C#
-5
Date Submitted Tue. Nov. 8th, 2005 6:10 AM
Revision 1
Beginner XStatic
Tags CSharp | Parse. Number | String
Comments 0 comments
Parsing a String for Numbe
14
Date Submitted Tue. Nov. 8th, 2005 11:45 AM
Revision 1
Beginner wwb
Tags CSharp | Generation | RSS
Comments 0 comments
RSS Generation Classes
7
Date Submitted Fri. Nov. 11th, 2005 6:13 PM
Revision 1
Beginner XStatic
Tags CSharp | Exception | Format | Stack
Comments 0 comments
Unwind and Format Exception Stack
9
Date Submitted Sat. Nov. 12th, 2005 2:54 AM
Revision 1
Beginner XStatic
Tags Config | CSharp | Library
Comments 0 comments
Class Library Configuration Support
8
Date Submitted Fri. Feb. 17th, 2006 3:49 PM
Revision 1
Beginner RRSands
Tags CSharp | Document | Execute | Launch | Run
Comments 0 comments
This snip opens any kind of document (e.g. .PDF, .DOC, .C, .HTM, etc.) using the default application associated with it. This relies on starting a new process with the .UseShellExecute property set to true.

The main overloaded function OpenDoc(filename) will open any associated document using the default OPEN verb. If you are trying to edit a file, for example, a command file, then you need should call OpenDoc with the "EDIT" verb. Some associations also a "PRINT" verb.

Since the return result is a System.Diagnostics.Process object, you can also monitor or kill the process.

Example:
OpenDoc("C:\\SomeDocumentation.pdf");
OpenDoc("C:\\AWebPage.htm", "EDIT");
OpenDoc("C:\\Test.txt", "PRINT");
System.Diagnostics.Process doc = OpenDoc("C:\\WebPage.htm");
11
Date Submitted Fri. Feb. 17th, 2006 4:49 PM
Revision 1
Beginner RRSands
Tags CSharp | Encryption | Security
Comments 0 comments
From RSA Security's website:
"RC4 is a stream cipher designed by Rivest for RSA Data Security (now RSA Security). It is a variable key-size stream cipher with byte-oriented operations. The algorithm is based on the use of a random permutation. Analysis shows that the period of the cipher is overwhelmingly likely to be greater than 10^100. Eight to sixteen machine operations are required per output byte, and the cipher can be expected to run very quickly in software. Independent analysts have scrutinized the algorithm and it is considered secure."

This implementation encodes the byte stream to be encrypted "in-place".

Example:
Byte[] Key = new Byte[5] { 12, 34, 22, 12, 32 };
Byte[] B = new Byte[10] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
// Examine B array before and after this next call.
RC4(ref B, Key);
// Examine B array before and after this next call.
RC4(ref B, Key);
« Previous 1 2 3 Next »