Interesting question: how can we read the pixel layout of a certain monitor?

L

lucy

Dear Talented Gurus,

Do you know any method that can read the RGB pixel layout of a LCD monitor?
For example, some LCD has three sub-pixels to composite a pixel --- RGB, and
others have BGR as subpixel layout.

Anybody know if I can obtain this information from monitor or drivers by
programming?

Thanks a lot,

-Lucy
 
C

Christoph Lindemann

Hi Lucy

GDIINFO returned by DrvEnablePDEV function includes a field called
ulPhysicalPixelCharacteristics. Maybe you could load the driver in your code
and call DrvEnablePDEV,
I dont know if that is possible, but GDIINFO is the only structure to
include this information, as far as I know.

/christoph
 
L

lucy

Christoph Lindemann said:
Hi Lucy

GDIINFO returned by DrvEnablePDEV function includes a field called
ulPhysicalPixelCharacteristics. Maybe you could load the driver in your code
and call DrvEnablePDEV,
I dont know if that is possible, but GDIINFO is the only structure to
include this information, as far as I know.

/christoph

Hi Christoph,

WOW! That's exactly what I want. Great! Thank you so much.

However, after a little study, I am really wondering how can I

"load the driver in your code and call DrvEnablePDEV"? How can I do that?

I am really not a DDK person, I am not even a CS device guy, originally I am
doing some high level programming but found out that I really need that low
level pixel information to proceed. That looks really hard!

By the way, do you know if DDK can be obtained for free? I am not a MSDN
subscriber and have no funding from my boss to enroll, since mostly we just
do high level matlab programming...

Thank you so much,

-Lucy
 
C

Christoph Lindemann

Hi Lucy,

I do not know how, and if you can load the driver. Was just an idea, which
probably needs some hacking.

Maybe you can get some help at www.osronline.com they also have a online
version of the DDK.

/christoph
 

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

Top