Click here to Skip to main content
15,914,010 members
Home / Discussions / C#
   

C#

 
AnswerRe: Database Microsoft Access Pin
Christian Graus12-Jan-06 12:49
protectorChristian Graus12-Jan-06 12:49 
GeneralRe: Database Microsoft Access Pin
Daniel Santillanes12-Jan-06 13:02
professionalDaniel Santillanes12-Jan-06 13:02 
GeneralRe: Database Microsoft Access Pin
Christian Graus12-Jan-06 13:07
protectorChristian Graus12-Jan-06 13:07 
GeneralRe: Database Microsoft Access Pin
Daniel Santillanes12-Jan-06 13:12
professionalDaniel Santillanes12-Jan-06 13:12 
AnswerRe: Database Microsoft Access Pin
pliu_200012-Jan-06 13:34
pliu_200012-Jan-06 13:34 
QuestionOptimization of unsafe code Pin
Robert Rohde12-Jan-06 12:26
Robert Rohde12-Jan-06 12:26 
AnswerRe: Optimization of unsafe code Pin
Christian Graus12-Jan-06 12:48
protectorChristian Graus12-Jan-06 12:48 
GeneralRe: Optimization of unsafe code Pin
Robert Rohde12-Jan-06 13:58
Robert Rohde12-Jan-06 13:58 
Thanks for your help. Now it performes a bit better (although not really significant):
C#
byte * p = (byte *)(void *)data.Scan0;
int nOffset = data.Stride - bitmap.Width * 4;
for (int y = 0; y < height; ++y)
{
	for (int x = 0; x < width; ++x)
	{
		p[0] = innerColorB;
		p[1] = innerColorG;
		p[2] = innerColorR;
		p[3] = innerColorA;
		p += 4;
	}
	p += nOffset;
}

Isn't there a way to set a bunch of bytes in one step instead of having to move through each pixel? As I said the whole bitmap should be filled with one color. Is there a way to prepare a byte array or something containing all bytes for one row and than just copying it y times?
GeneralRe: Optimization of unsafe code Pin
Christian Graus12-Jan-06 14:01
protectorChristian Graus12-Jan-06 14:01 
QuestionWNetAddConnection2A & Web Services Pin
Guinness4Strength12-Jan-06 11:58
Guinness4Strength12-Jan-06 11:58 
AnswerRe: WNetAddConnection2A & Web Services Pin
Dave Kreskowiak12-Jan-06 15:42
mveDave Kreskowiak12-Jan-06 15:42 
GeneralRe: WNetAddConnection2A & Web Services Pin
Guinness4Strength13-Jan-06 11:37
Guinness4Strength13-Jan-06 11:37 
GeneralRe: WNetAddConnection2A & Web Services Pin
Dave Kreskowiak13-Jan-06 15:12
mveDave Kreskowiak13-Jan-06 15:12 
GeneralRe: WNetAddConnection2A & Web Services Pin
Guinness4Strength14-Jan-06 10:28
Guinness4Strength14-Jan-06 10:28 
GeneralRe: WNetAddConnection2A & Web Services Pin
Dave Kreskowiak14-Jan-06 15:34
mveDave Kreskowiak14-Jan-06 15:34 
GeneralRe: WNetAddConnection2A & Web Services Pin
Guinness4Strength14-Jan-06 18:33
Guinness4Strength14-Jan-06 18:33 
GeneralRe: WNetAddConnection2A & Web Services Pin
Dave Kreskowiak15-Jan-06 4:28
mveDave Kreskowiak15-Jan-06 4:28 
GeneralRe: WNetAddConnection2A & Web Services Pin
Guinness4Strength15-Jan-06 4:53
Guinness4Strength15-Jan-06 4:53 
QuestionDataGrid update Pin
AlbePes12-Jan-06 11:43
AlbePes12-Jan-06 11:43 
QuestionGridView COntrol / C# 2005 / ASP.NET Pin
kishanb12-Jan-06 11:17
kishanb12-Jan-06 11:17 
Questionweb-testing with c# Pin
James Brown12-Jan-06 10:40
James Brown12-Jan-06 10:40 
QuestionNested Multi Colump Weekly Planner Report in CR.Net Pin
Kaazim12-Jan-06 10:12
Kaazim12-Jan-06 10:12 
QuestionVisual C# 2005 Express: Database Project Question Pin
OMalleyW12-Jan-06 8:01
OMalleyW12-Jan-06 8:01 
AnswerRe: Visual C# 2005 Express: Database Project Question Pin
Colin Angus Mackay12-Jan-06 11:28
Colin Angus Mackay12-Jan-06 11:28 
GeneralRe: Visual C# 2005 Express: Database Project Question Pin
OMalleyW12-Jan-06 13:47
OMalleyW12-Jan-06 13:47 

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.