 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
C. Bond Guest
|
Posted: Mon Jan 10, 2005 12:12 am Post subject: PixelFormat - pfDevice |
|
|
When a new bitmap is created, it appears that the pixel
format defaults to pfDevice. But how can the properties of
this format be found at run-time? On my laptop with an LCD
display, I think the 'native' pixel format is 15-bit or
16-bit color, but I have no idea whether pfDevice is one of
those. Any ideas on how to determine this?
--
Democracy: The triumph of popularity over principle.
--
http://www.crbond.com
|
|
| Back to top |
|
 |
Simon D Guest
|
Posted: Mon Jan 10, 2005 9:43 am Post subject: Re: PixelFormat - pfDevice |
|
|
I think you use
GetPixelFormat()
followed by
DescribePixelFormat()
then examine the
PIXELFORMATDESCRIPTOR
with suitable checks for failure of course.
Simon.
--
"C. Bond" <cbond (AT) ix (DOT) netcom.com> wrote
| Quote: | When a new bitmap is created, it appears that the pixel
format defaults to pfDevice. But how can the properties of
this format be found at run-time? On my laptop with an LCD
display, I think the 'native' pixel format is 15-bit or
16-bit color, but I have no idea whether pfDevice is one of
those. Any ideas on how to determine this?
--
Democracy: The triumph of popularity over principle.
--
http://www.crbond.com
|
|
|
| Back to top |
|
 |
|
|
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
|
|