Re: Windows XP display driver brush color question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Yes, that's correct as far as the problem was described and understood.

If you could post a stack of the place where that happens,
and the application generating that, I might be able to cross check.

--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Mr Hat" <MrHat@xxxxxxxxxxxxx> wrote in message
news:05A0D449-ABC8-42F0-85F5-5F94E95581DD@xxxxxxxxxxxxxxxx
I just want to verify that I understand correctly:

Despite the "extra" information in the upper byte returned from
BRUSHOBJ_ulGetBrushColor, the RGB data returned contains the correct color
information. The solution to my problem is to ignore the upper byte
returned
(after checking for a return value of -1).

"Ivan Brugiolo [MSFT]" wrote:

In certain parts of NtGdi, the high byte of a COLOREF
is reused for storing a few private bits for Image Color Management.

That's why a `solid` color brush cannot have alpha, and, the closest
approximation of that is a 32bpp 1x1 bitmap-based brush with alpha,
to be used in StretchBlt and BitBlt operations.

--
--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Mr Hat" <MrHat@xxxxxxxxxxxxx> wrote in message
news:0DBA48D2-8D3A-480B-B737-56995AD6C27D@xxxxxxxxxxxxxxxx
The ddk states that BRUSHOBJ_ulGetBrushColor returns either an RGB
value
or
-1 if the brush is not solid. When our driver is running in an 8bit
display
mode with no palette, we sometimes see bits set in the upper 8 bits of
the
return value. Is this an indication of an invalid color, or is it
correct
for
GDI to return alpha information as part of the RGB data?

Note: Our driver is for a display adapter optimized for grayscale
medical
imaging. The 8bit display mode is used to display grayscale images.





.



Relevant Pages

  • Re: Windows XP display driver brush color question
    ... is reused for storing a few private bits for Image Color Management. ... That's why a `solid` color brush cannot have alpha, and, the closest ... Our driver is for a display adapter optimized for grayscale medical ...
    (microsoft.public.development.device.drivers)
  • Re: Erfahrungen mit Sony alpha 700 oder alpha 900?!
    ... vernünftig verarbeitet und ausgestattet, und für jemanden, der noch eine Dynax 700si und Dynax 7 hat, auch schnell zu durchschauen. ... Vorhang, Wireless" - ich muss mit der Alpha 700 ins Menü spechten, das nervt, obwohl's gut organisiert und schnell erreichbar ist. ... ISO 6400 ist m. E. unbrauchbar, ISO 3200 rauscht gewaltig, ISO 1600 rauscht sichtbar, ist aber für viele Zwecke OK. ...
    (de.rec.fotografie)
  • Re: Support for PNG with Alpha channel
    ... The next thing I would recommend is doing the alpha blend yourself. ... Create a bitmap from the PNG image in the same size as your working surface. ... Blt the working surface back to the display. ...
    (microsoft.public.windowsce.embedded)
  • DECW Server vs MWM priorities
    ... no redrawing of the window is done if you move it and the window "grabs" whatever was at the location you are moving it to. ... Interestingly, the alpha was at near 0% usage, it was the DECW$SERVER0 on the VAX that was at 100%. ... Anyhow, I expect those issues to go away once I get my keyboard and get the Alpha to handle the DECW session, as well as the 24 bit Radeon card to display in 24 bits, removing the need to convert all images to pseudo colours. ... I have noticed that the MWM process is created with base priority of 4 whilsyt the DECW$SERVER is created at based priority of 6. ...
    (comp.os.vms)
  • Re: Changing format properties in tables
    ... Formatting a field has no effect on the data stored in the field, ... You can always format the form or report control ... just as you have the table field to display the data in upper case. ... update the data in the table to actually be Upper Case. ...
    (microsoft.public.access.forms)