Can i get bytes from DC directly?

  • Thread starter Thread starter ΢ÈíÐÂÎÅ×é
  • Start date Start date
Î

΢ÈíÐÂÎÅ×é

Here i use BitBlt(destDC,x,y,w,h,srcDC,x,y,SRCCOPY) to copy srcDC into
destDC.

i think GetPixel(destDC,x,y) can get the Pixel info at Point(x,y).

and my question is :

can i get bytes info from destDC directly ?

because i think get bytes directly is faster than GetPixel()'s way.

why do i bring out this question?
i have read a msdn help 'How to save a true color bitmap into a Gif file'
which tells me how to get the pixelinfo and save the bitmap into a gif
file.And the help says while doing pixels processing,the LockBits() method
is more efficent than GetPixel()'s way.
so i think whether there is a way to get bytes info from DC directly like
LockBits() do.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top