Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 24 Jul 2008 14:48:59 +0800,    group: microsoft.public.win32.programmer.ui        back       


The same icon draws in two DC. One is more brightness than anther.   
Two DC belongs two window.
One of the two DC is a memory DC,and it has an DIB section:
      bmi.bmiHeader.biBitCount = 32;
      bmi.bmiHeader.biCompression = BI_RGB;


so,why?
date: Thu, 24 Jul 2008 14:48:59 +0800   author:   susan none

Re: The same icon draws in two DC. One is more brightness than anther.   
On Jul 24, 7:48 am, "susan" <none> wrote:
> The same icon draws in two DC. One is more brightness than another.
> so,why?

An icon file can contain multiple representations of the same icon,
for different bit depths, sizes etc.  Depending on exactly how you
draw the icon, Windows may be selecting the 'most appropriate' image
for the properties of the DC.  So, not only is is possible for the
brightness to be different, in fact you might get a totally different
image depending on which DC you draw into!

Use an icon editor to view the contents of the icon file; you may find
that different images have different brightness.

Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.
date: Fri, 25 Jul 2008 14:22:16 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us