BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PixelFormat - pfDevice

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
C. Bond
Guest





PostPosted: Mon Jan 10, 2005 12:12 am    Post subject: PixelFormat - pfDevice Reply with 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
Simon D
Guest





PostPosted: Mon Jan 10, 2005 9:43 am    Post subject: Re: PixelFormat - pfDevice Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.