Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
AnswerRe: How run my application by click of my own file Pin
Heath Stewart17-Jun-05 11:23
protectorHeath Stewart17-Jun-05 11:23 
GeneralRe: How run my application by click of my own file Pin
Sasuko17-Jun-05 11:41
Sasuko17-Jun-05 11:41 
GeneralArray as parameter in webservice! Pin
myousufq17-Jun-05 8:34
myousufq17-Jun-05 8:34 
Questionwhat is an interface? Pin
Sasuko17-Jun-05 7:36
Sasuko17-Jun-05 7:36 
AnswerRe: what is an interface? Pin
Niklas Ulvinge17-Jun-05 8:21
Niklas Ulvinge17-Jun-05 8:21 
AnswerRe: what is an interface? Pin
Heath Stewart17-Jun-05 11:35
protectorHeath Stewart17-Jun-05 11:35 
Generalcolor coding images Pin
sami_bio@yahoo.com17-Jun-05 6:34
sami_bio@yahoo.com17-Jun-05 6:34 
GeneralRe: color coding images Pin
Heath Stewart17-Jun-05 11:52
protectorHeath Stewart17-Jun-05 11:52 
Coloring a gray-scale image with any decent quality is not a straight forward color-assignment to luminescence process typically. To learn the details about how it's done professionally I recommend doing a search for something like coloring gray-scale images[^].

To actually implement this in .NET, you use the System.Drawing.Bitmap class. When dealing with pixel-by-pixel transformations you might consider calling Bitmap.LockBits, which locks the object in memory so it isn't moved around and gives you a BitmapData object you can use unsafe code to access pixels. Only do this if you're sure you're handling memory correctly and efficiently, and be sure to call Bitmap.UnlockBits when finished.

For a great overview of unsafe transformations of graphics in .NET - as well as safe transformations - read Christian Graus's article, Image Processing for Dummies with C# and GDI+ Part 1 - Per Pixel Filters[^].

As an aside, try to steer clear of unsafe code in .NET. It is there for interoperability but requires special permissions and leaves your code unverifiable, which is a safety net for your users. That's part of what being "managed code" is all about.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
GeneralProblem with setting focus in an edit box Pin
RichardNN17-Jun-05 6:22
RichardNN17-Jun-05 6:22 
GeneralRe: Problem with setting focus in an edit box Pin
Dave Kreskowiak17-Jun-05 6:36
mveDave Kreskowiak17-Jun-05 6:36 
GeneralRe: Problem with setting focus in an edit box Pin
RichardNN17-Jun-05 7:03
RichardNN17-Jun-05 7:03 
GeneralRe: Problem with setting focus in an edit box (edit) Pin
Luis Alonso Ramos17-Jun-05 8:51
Luis Alonso Ramos17-Jun-05 8:51 
GeneralFind text in a RichTextBox Pin
David_cole17-Jun-05 5:02
David_cole17-Jun-05 5:02 
GeneralRe: Find text in a RichTextBox Pin
Dave Kreskowiak17-Jun-05 5:50
mveDave Kreskowiak17-Jun-05 5:50 
GeneralRe: Find text in a RichTextBox Pin
David_cole17-Jun-05 22:30
David_cole17-Jun-05 22:30 
GeneralRe: Find text in a RichTextBox Pin
Dave Kreskowiak18-Jun-05 13:30
mveDave Kreskowiak18-Jun-05 13:30 
GeneralPass txtComputer.Text to class file Pin
epfuller17-Jun-05 4:52
epfuller17-Jun-05 4:52 
GeneralRe: Pass txtComputer.Text to class file Pin
Dave Kreskowiak17-Jun-05 5:46
mveDave Kreskowiak17-Jun-05 5:46 
GeneralRe: Pass txtComputer.Text to class file Pin
epfuller17-Jun-05 6:08
epfuller17-Jun-05 6:08 
GeneralRe: Pass txtComputer.Text to class file Pin
Dave Kreskowiak17-Jun-05 6:32
mveDave Kreskowiak17-Jun-05 6:32 
GeneralRe: Pass txtComputer.Text to class file Pin
epfuller20-Jun-05 6:04
epfuller20-Jun-05 6:04 
QuestionHow can I use WH_MOUSE_LL with Windows 98? Pin
Begoña17-Jun-05 4:44
Begoña17-Jun-05 4:44 
AnswerRe: How can I use WH_MOUSE_LL with Windows 98? Pin
Dave Kreskowiak17-Jun-05 5:44
mveDave Kreskowiak17-Jun-05 5:44 
GeneralMy new article Pin
Ahmed Erarslan17-Jun-05 4:29
Ahmed Erarslan17-Jun-05 4:29 
GeneralInterface Problem Pin
Anonymous17-Jun-05 3:11
Anonymous17-Jun-05 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.