Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: create LogError file(C# Coding) [modified] for WindowsApplication Pin
Pr@teek B@h!5-Feb-10 3:37
Pr@teek B@h!5-Feb-10 3:37 
QuestionDatagridview Focus to specific cell Pin
Vijjuuu.3-Feb-10 21:02
Vijjuuu.3-Feb-10 21:02 
AnswerRe: Datagridview Focus to specific cell Pin
Eddy Vluggen3-Feb-10 21:34
professionalEddy Vluggen3-Feb-10 21:34 
GeneralRe: Datagridview Focus to specific cell Pin
Vijjuuu.4-Feb-10 1:11
Vijjuuu.4-Feb-10 1:11 
GeneralRe: Datagridview Focus to specific cell Pin
Eddy Vluggen4-Feb-10 1:32
professionalEddy Vluggen4-Feb-10 1:32 
GeneralRe: Datagridview Focus to specific cell Pin
Vijjuuu.4-Feb-10 2:09
Vijjuuu.4-Feb-10 2:09 
QuestionImage opacity in C# Pin
VCsamir3-Feb-10 20:45
VCsamir3-Feb-10 20:45 
AnswerRe: Image opacity in C# Pin
Nuri Ismail3-Feb-10 21:29
Nuri Ismail3-Feb-10 21:29 
VCsamir wrote:
i use getpixel & setpixel

These methods are really VERY slow. Smile | :)

VCsamir wrote:
Is there any alternate way to do so?

Yes.

- One of the alternative methods is to lock the bits of your bitmap in memory and perform a direct access to the bitmap bits using unsafe block. There are plenty of examples and here[^] is a very brief one.

- Another option is to hide this pointer arithmetic in a class and provide some fast GetPixel and SetPixel implementations. You can find such a class in this[^] article (it is named UnsafeBitmap).

- The third option is using ColorMatrix[^]. Here are some examples of its usage: 1[^], 2[^]. You can find more...

I'd also suggest you to have a look at this article and the other parts of the series: Image Processing for Dummies with C# and GDI+ Part 1 - Per Pixel Filters[^]

I hope this helps. Smile | :)
GeneralRe: Image opacity in C# Pin
VCsamir3-Feb-10 23:09
VCsamir3-Feb-10 23:09 
GeneralRe: Image opacity in C# Pin
Nuri Ismail3-Feb-10 23:16
Nuri Ismail3-Feb-10 23:16 
QuestionCompare two strings with different fonts Pin
huonghue3-Feb-10 17:17
huonghue3-Feb-10 17:17 
AnswerRe: Compare two strings with different fonts Pin
huonghue3-Feb-10 19:09
huonghue3-Feb-10 19:09 
AnswerRe: Compare two strings with different fonts Pin
Roger Wright3-Feb-10 19:33
professionalRoger Wright3-Feb-10 19:33 
GeneralRe: Compare two strings with different fonts Pin
huonghue4-Feb-10 13:26
huonghue4-Feb-10 13:26 
AnswerRe: Compare two strings with different fonts Pin
Richard MacCutchan3-Feb-10 22:25
mveRichard MacCutchan3-Feb-10 22:25 
GeneralRe: Compare two strings with different fonts Pin
huonghue4-Feb-10 13:21
huonghue4-Feb-10 13:21 
GeneralRe: Compare two strings with different fonts Pin
Richard MacCutchan4-Feb-10 21:45
mveRichard MacCutchan4-Feb-10 21:45 
QuestionWhat is the return value of the insert and delete sql statement Pin
Zar Ni3-Feb-10 17:03
Zar Ni3-Feb-10 17:03 
AnswerRe: What is the return value of the insert and delete sql statement Pin
Palash Biswas3-Feb-10 17:21
Palash Biswas3-Feb-10 17:21 
GeneralRe: What is the return value of the insert and delete sql statement Pin
Zar Ni3-Feb-10 18:43
Zar Ni3-Feb-10 18:43 
GeneralRe: What is the return value of the insert and delete sql statement Pin
Palash Biswas3-Feb-10 19:54
Palash Biswas3-Feb-10 19:54 
GeneralRe: What is the return value of the insert and delete sql statement Pin
Zar Ni3-Feb-10 20:11
Zar Ni3-Feb-10 20:11 
GeneralRe: What is the return value of the insert and delete sql statement Pin
Zar Ni3-Feb-10 20:19
Zar Ni3-Feb-10 20:19 
GeneralRe: What is the return value of the insert and delete sql statement Pin
Palash Biswas3-Feb-10 20:27
Palash Biswas3-Feb-10 20:27 
GeneralRe: What is the return value of the insert and delete sql statement Pin
Zar Ni3-Feb-10 20:29
Zar Ni3-Feb-10 20:29 

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.