Re: direct access to display memory

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: vipin (vipin_at_nospam.com)
Date: 09/15/04


Date: Wed, 15 Sep 2004 15:00:14 +0530

Onto Dx, I had like to see this I have Dx9.0 installed.
Any sample code to run and see.

Thanks
Vipin

"Louis Solomon [SteelBytes]" <louis@steelbytes.spam-is-bad.com> wrote in
message news:exlqmWrmEHA.1712@TK2MSFTNGP09.phx.gbl...
> DirectX allows direct access to video memory.
>
> read up on CreateSurface and GetGDISurface etc
>
> --
> Louis Solomon
> www.steelbytes.com
>
>
> "Masoud Rozati" <masoud@ansari.nospam.de> wrote in message
> news:eN74AhmmEHA.1136@TK2MSFTNGP10.phx.gbl...
> >I need a quick and efficient way of accessing display memory. In fact
what
> >I
> > am going to do is capturing a portion of the screen given its
coordinates.
> > I
> > don't want to get a copy of bitmap data elsewhere, because that reduces
my
> > performance.
> > I am not sure if using GDI/GDI+ is the right solution for my problem. So
> > my
> > questions:
> > 1. Is it basically possible to directly access the display memory of
> > Windows? if so, which API / function provides such means?
> > 2. What is the fastest way of reading a portion of screen or application
> > display given the coordinates of that area?
> > 3. How can I find out which pixel within a specific area are changed. I
am
> > going to gather image updates in a minimal way (only changed pixels)
> >
> > Any help is appreciated
> > Masoud
> >
> >
>
>



Relevant Pages

  • Re: memset32
    ... You don't have direct access to hardware under Win32. ... There's is no such thing as video memory in user mode code. ... DDSURFACEDESC2 ddsd; ...
    (microsoft.public.vc.language)
  • Re: Writing to text files efficiently
    ... can you give a pointer as to how to acheive both direct access but more especially RAM? ... manipulate the individual array elements as variable-length strings. ... Direct access is easiest w/fixed length records. ... run now so hopefully someone else will show either some sample code or ...
    (microsoft.public.vb.general.discussion)
  • Re: memset32
    ... You don't have direct access to hardware under Win32. ... There's is no such thing as video memory in user mode code. ...
    (microsoft.public.vc.language)