Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Colors a transparent pixel in a bitmap.
static void __stdcall SetAlphaPixel(
   COLORREF* pBits,
   CRect rect,
   int x,
   int y,
   int percent,
   int iShadowSize,
   COLORREF clrBase = (COLORREF)-1,
   BOOL bIsRight = TRUE
);
Parameters
- [in] pBits 
 A pointer to the bit values for the bitmap.
- [in] rect 
 A rectangular area in your application. The drawing manager draws a shadow underneath and to the right of this area.
- [in] x 
 The horizontal coordinate of the pixel to color.
- [in] y 
 The vertical coordinate of the pixel to color.
- [in] percent 
 The percentage of transparency.
- [in] iShadowSize 
 The width and height of the shadow.
- [in] clrBase 
 The color of the shadow.
- [in] bIsRight 
 A Boolean parameter that indicates which pixel to color. See the Remarks section for more information.
Remarks
This method is a helper method that is used by the CDrawingManager::DrawShadow method. We recommend that if you want to draw a shadow, call CDrawingManager::DrawShadow instead.
If bIsRight is set to TRUE, the pixel to color is measured x pixels from the right edge of rect. If it is FALSE, the pixel to color is measured x pixels from the left edge of rect.
Requirements
Header: afxdrawmanager.h