Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
Questionoperating system Pin
debnathrubs9-Feb-07 22:09
debnathrubs9-Feb-07 22:09 
AnswerRe: operating system Pin
Christian Graus9-Feb-07 22:19
protectorChristian Graus9-Feb-07 22:19 
GeneralRe: operating system Pin
debnathrubs9-Feb-07 22:55
debnathrubs9-Feb-07 22:55 
GeneralRe: operating system Pin
Christian Graus9-Feb-07 23:17
protectorChristian Graus9-Feb-07 23:17 
GeneralRe: operating system Pin
debnathrubs9-Feb-07 23:24
debnathrubs9-Feb-07 23:24 
GeneralRe: operating system Pin
Colin Angus Mackay10-Feb-07 0:25
Colin Angus Mackay10-Feb-07 0:25 
GeneralRe: operating system Pin
Dave Kreskowiak10-Feb-07 4:04
mveDave Kreskowiak10-Feb-07 4:04 
QuestionDifferent speeds using Pointers Pin
AlexZieg719-Feb-07 21:09
AlexZieg719-Feb-07 21:09 
Hi,

I have a problem to understand a pointer thing under .NET:
I have built an unsafe class in which I access the bits of a bitmap using a rgb-struct-pointer:
(RGBTRIPLE*)(ptBits + iY * iPitch + iX * sizeof(RGBTRIPLE));
with
[StructLayout(LayoutKind.Sequential)]<br />
public struct RGBTRIPLE <br />
{ <br />
	public byte rgbtBlue;<br />
	public byte rgbtGreen;<br />
	public byte rgbtRed;<br />
}


It works well with both a locked System.Drawing.Bitmap, and an image, which I loaded externally using "FreeImage.dll".

So for my understanding I have the same image data structure in memory: the locked GDI+ Bitmap and the FreeImage-bitmap and in both cases I have got a pointer that points to the structure start and in both cases I use the same 24bit-struct to access the pixels.

But nevertheless reading the locked GDI+ Bitmap is approximately 30% faster than reading the FreeImage-bitmap.

Is there maybe a difference located behind the pointer access? Do you have any comment or explanation for that phenomenon?


Thanks,
Alex
QuestionMethods and Calling Methods Pin
JMOdom9-Feb-07 20:33
JMOdom9-Feb-07 20:33 
AnswerRe: Methods and Calling Methods Pin
Christian Graus9-Feb-07 21:00
protectorChristian Graus9-Feb-07 21:00 
GeneralRe: Methods and Calling Methods Pin
chris.hagelstein5-Apr-10 8:07
chris.hagelstein5-Apr-10 8:07 
QuestionAccessing dbf database tables instead of database Pin
kalyan_24169-Feb-07 19:36
kalyan_24169-Feb-07 19:36 
QuestionResponse.Redirect Failedon login Pin
dabuskol9-Feb-07 18:14
dabuskol9-Feb-07 18:14 
QuestionException has been thrown by the target of an invocation Pin
Kasic Slobodan9-Feb-07 16:44
Kasic Slobodan9-Feb-07 16:44 
AnswerRe: Exception has been thrown by the target of an invocation Pin
Stefan Troschuetz9-Feb-07 21:35
Stefan Troschuetz9-Feb-07 21:35 
GeneralRe: Exception has been thrown by the target of an invocation Pin
Kasic Slobodan11-Feb-07 5:30
Kasic Slobodan11-Feb-07 5:30 
QuestionHow do I Index into a grid view while typing string? Pin
Edwin Smith9-Feb-07 16:12
Edwin Smith9-Feb-07 16:12 
QuestionGripStyle Pin
max292979-Feb-07 15:32
max292979-Feb-07 15:32 
AnswerRe: GripStyle Pin
PIEBALDconsult9-Feb-07 17:00
mvePIEBALDconsult9-Feb-07 17:00 
QuestionMore Options on a ToolStrip Pin
max292979-Feb-07 15:29
max292979-Feb-07 15:29 
QuestionCan I create a personalized window? Pin
Khoramdin9-Feb-07 15:06
Khoramdin9-Feb-07 15:06 
AnswerRe: Can I create a personalized window? Pin
PIEBALDconsult9-Feb-07 17:02
mvePIEBALDconsult9-Feb-07 17:02 
QuestionRe: Can I create a personalized window? Pin
Khoramdin9-Feb-07 22:00
Khoramdin9-Feb-07 22:00 
QuestioncurrentMotion[0]["MeetingDateProp"].ToString("MMM dd, yyyy") Pin
Glen Harvy9-Feb-07 12:06
Glen Harvy9-Feb-07 12:06 
AnswerRe: currentMotion[0]["MeetingDateProp"].ToString("MMM dd, yyyy") Pin
Christian Graus9-Feb-07 12:12
protectorChristian Graus9-Feb-07 12:12 

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.