flat assembler
Message board for the users of flat assembler.

Index > Windows > manual pixel access

Author
Thread Post new topic Reply to topic
karl



Joined: 07 Feb 2006
Posts: 63
Location: South Africa
karl
does anyone know how one would go about manually controlling the screen memory? i mean, like accessing pixel data without using SetPixel. basically, how does windows store pixels in, say, a bitmap dc? i want to be able to write to my back buffer without having to call the windows subsystems. without a context switch. anyone know where one can get this information?

there is a book, Windows Graphics Programming: Win32 GDI and DirectDraw, but it has been out of print for a long time.
Post 26 Sep 2006, 14:39
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
If you want to use GDI then your choice possibly is http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_233i.asp (CreateDIBSection). I did it once with MASM but I was very stupid in trust that my new HD will never fail in the first two month but now Western Digital owns my data on that unusable HD Sad (and they gave me a new HD of course (RMA)).

For DirectX look at the example in FASMW package

Regards
Post 26 Sep 2006, 14:44
View user's profile Send private message Reply with quote
karl



Joined: 07 Feb 2006
Posts: 63
Location: South Africa
karl
thanks man, i think that's just what i was looking for.
cool example: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/_sample_mfc_FIRE.asp
(using gdi)

sucks about the hd.
Post 26 Sep 2006, 15:15
View user's profile Send private message Reply with quote
karl



Joined: 07 Feb 2006
Posts: 63
Location: South Africa
karl
Post 26 Sep 2006, 15:33
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.