Thread: pixels in a DC

  1. #1
    Registered User
    Join Date
    Dec 2002

    pixels in a DC

    Hi Guys,

    I have a question you might have seen before, but I can't find it on the site, so here goes:

    Is there a better (i.e. faster) way to access the pixel data in a DC?
    In this particular instance, I've got a DC of the screen by using CreateDC, and I'm using GetPixel, then GetRValue etc. on each pixel point. But it's taking too long. Is there a way to access the data that GetPixel is looking at? Will I be able to interperit it?

    Any help appreciated,


  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    I suppose you could get a DIB of the DC and access the data in it. In this thread, I responded to someone on how to access DIB data directly.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win Api Basics...
    By Devil Panther in forum Windows Programming
    Replies: 19
    Last Post: 09-09-2004, 11:28 AM
  2. bitmap pixels???????????
    By SuperNewbie in forum Windows Programming
    Replies: 2
    Last Post: 03-23-2004, 01:53 AM
  3. screenshots before a window pops up?
    By MadHatter in forum Game Programming
    Replies: 13
    Last Post: 12-31-2002, 11:09 AM
  4. transferring GDI attributes.
    By Sebastiani in forum Windows Programming
    Replies: 4
    Last Post: 11-19-2002, 02:30 PM
  5. Algo needed for 'Fit to page'
    By Unregged in forum Windows Programming
    Replies: 6
    Last Post: 10-03-2002, 07:09 AM