Click here to Skip to main content
15,867,704 members
Home / Discussions / C#
   

C#

 
GeneralClosing all mdichildren forms Pin
Dylan van Heerden14-Jun-04 8:33
Dylan van Heerden14-Jun-04 8:33 
GeneralRe: Closing all mdichildren forms Pin
Heath Stewart14-Jun-04 8:52
protectorHeath Stewart14-Jun-04 8:52 
GeneralRe: Closing all mdichildren forms Pin
Dylan van Heerden14-Jun-04 9:23
Dylan van Heerden14-Jun-04 9:23 
GeneralRe: Closing all mdichildren forms Pin
Heath Stewart14-Jun-04 9:25
protectorHeath Stewart14-Jun-04 9:25 
GeneralRe: Closing all mdichildren forms Pin
Dylan van Heerden14-Jun-04 9:39
Dylan van Heerden14-Jun-04 9:39 
GeneralRe: Closing all mdichildren forms Pin
LongRange.Shooter14-Jun-04 10:12
LongRange.Shooter14-Jun-04 10:12 
GeneralDirectx Writepixel in .NET Pin
eldrago14-Jun-04 6:49
eldrago14-Jun-04 6:49 
GeneralRe: Directx Writepixel in .NET Pin
Jeremy Kimball14-Jun-04 9:02
Jeremy Kimball14-Jun-04 9:02 
Without going into too much detail, it's not quite that easy. There are two ways to do what you're talking about. One is blitting a one pixel blob to the location specified. The other involves locking the surface buffer, and then using the desired coordinates (x,y) and the stride of the surface (# of bytes/scan line) to determine the offset needed to set.

Kinda like this: (not compilable code)
WritePixel(Surface surf, int x, int y, int col) {
    int[] surfaceContents = surf.Lock(....);
    int offset = (y * surf.width * surf.SurfaceDescription.Stride) + x;
    surfaceContents[offset] = col;
    surf.Unlock();
}


You're better off searching thru Google about the actual formula involving X, Y, and stride. I can't remember exactly where the stride fits in at this second.

Good luck Smile | :)



Jeremy Kimball

I have traveled the gutters, lo these many days, with no signs of life. Well met.
-brianwelsch
GeneralRe: Directx Writepixel in .NET Pin
eldrago14-Jun-04 20:00
eldrago14-Jun-04 20:00 
GeneralRe: Directx Writepixel in .NET Pin
Jeremy Kimball15-Jun-04 3:00
Jeremy Kimball15-Jun-04 3:00 
GeneralSynchronized Databinding Pin
WillemM14-Jun-04 6:43
WillemM14-Jun-04 6:43 
GeneralRe: Synchronized Databinding Pin
WillemM14-Jun-04 7:51
WillemM14-Jun-04 7:51 
GeneralDataGrid CheckBoxes Pin
exhaulted14-Jun-04 6:23
exhaulted14-Jun-04 6:23 
GeneralRe: DataGrid CheckBoxes Pin
Heath Stewart14-Jun-04 6:28
protectorHeath Stewart14-Jun-04 6:28 
GeneralRe: DataGrid CheckBoxes Pin
exhaulted14-Jun-04 22:09
exhaulted14-Jun-04 22:09 
GeneralRe: DataGrid CheckBoxes Pin
Heath Stewart15-Jun-04 2:32
protectorHeath Stewart15-Jun-04 2:32 
GeneralRe: DataGrid CheckBoxes Pin
exhaulted15-Jun-04 5:40
exhaulted15-Jun-04 5:40 
GeneralRe: DataGrid CheckBoxes Pin
Heath Stewart15-Jun-04 5:53
protectorHeath Stewart15-Jun-04 5:53 
GeneralRe: DataGrid CheckBoxes Pin
exhaulted15-Jun-04 6:17
exhaulted15-Jun-04 6:17 
GeneralDataGrid CheckBoxes Pin
exhaulted14-Jun-04 6:23
exhaulted14-Jun-04 6:23 
Questionthe best way to terminate a blocked thread? Pin
vista2714-Jun-04 6:20
vista2714-Jun-04 6:20 
AnswerRe: the best way to terminate a blocked thread? Pin
palbano14-Jun-04 6:38
palbano14-Jun-04 6:38 
AnswerRe: the best way to terminate a blocked thread? Pin
Mike Dimmick14-Jun-04 6:40
Mike Dimmick14-Jun-04 6:40 
Generalneed help, treeView and active directory Pin
vcorn14-Jun-04 6:11
vcorn14-Jun-04 6:11 
GeneralRe: need help, treeView and active directory Pin
Heath Stewart14-Jun-04 6:41
protectorHeath Stewart14-Jun-04 6:41 

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.