Re: Colors /16 bpp

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Nelson (doomer999_at_hotmail.com)
Date: 04/25/04


Date: Sun, 25 Apr 2004 12:20:30 +0800

Hi,

You can set the bmiColors member in the BITMAPINFO to control the 555 or 565
format (Of course that should be done before the DIBSection is created).

You can also use GetObject to detect which format it is.

Hope this helps,
Nelson

"patrox" <misterbanned@hotmail.com> ¦b¶l¥ó
news:408a2a76$0$7788$7a628cd7@news.club-internet.fr ¤¤¼¶¼g...
> Hello
>
> I would like to know if a 16 bit DibSection is always of the same format (
> 555 ? or 565 ?)
> If not, is there a way to force/detect it ?
>
> thank you
> patrice.
>
>



Relevant Pages

  • Re: time calculation problem [OT]
    ... But Al's previous formula though it didnot work gave me the format i wanted. ... In the former I was using the DTPicker control, which seemed to allow me to use two controls on the same underlying field, and somehow managed to avoid problems when I edited either: ... which appears as a "general" date/time format when clicked. ... I've wondered about using an event handler to intercept the attempt to edit in order to present a popup form with separate date and time text boxes which are then combined correctly when this popup form is closed. ...
    (microsoft.public.access.gettingstarted)
  • Re: time calculation problem [OT]
    ... But Al's previous formula though it didnot work gave me the format i wanted. ... In the former I was using the DTPicker control, which seemed to allow me to use two controls on the same underlying field, and somehow managed to avoid problems when I edited either: ... I've wondered about using an event handler to intercept the attempt to edit in order to present a popup form with separate date and time text boxes which are then combined correctly when this popup form is closed. ... What I wanted was to avoid users having to edit a date/time in "General ...
    (microsoft.public.access.gettingstarted)
  • Re: time calculation problem [OT]
    ... But Al's previous formula though it didnot work gave me the format i wanted. ... In the former I was using the DTPicker control, which seemed to allow me to use two controls on the same underlying field, and somehow managed to avoid problems when I edited either: ... I've wondered about using an event handler to intercept the attempt to edit in order to present a popup form with separate date and time text boxes which are then combined correctly when this popup form is closed. ... What I wanted was to avoid users having to edit a date/time in "General ...
    (microsoft.public.access.gettingstarted)
  • Re: time calculation problem [OT]
    ... But Al's previous formula though it didnot work gave me the format i wanted. ... In the former I was using the DTPicker control, which seemed to allow me to use two controls on the same underlying field, and somehow managed to avoid problems when I edited either: ... I've wondered about using an event handler to intercept the attempt to edit in order to present a popup form with separate date and time text boxes which are then combined correctly when this popup form is closed. ... What I wanted was to avoid users having to edit a date/time in "General ...
    (microsoft.public.access.gettingstarted)
  • Re: time calculation problem
    ... It works better, in most situations, to have the date and time in one field and use functions such as DateValue and TimeValue to get separate date or time. ... Or Format to display a specific part of the dateTime value. ... In the former I was using the DTPicker control, which seemed to allow me to use two controls on the same underlying field, and somehow managed to avoid problems when I edited either: ... I've wondered about using an event handler to intercept the attempt to edit in order to present a popup form with separate date and time text boxes which are then combined correctly when this popup form is closed. ...
    (microsoft.public.access.gettingstarted)