Archived:SetAlpha does not have any effect with nullpen in the Nokia N93 (Known Issue)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Content not applicable to current releases of platform
Content not applicable to current releases of platform
SetAlpha() does not have any effect when it is used with penstyle - ENullPen.
Article Metadata
Tested with
Devices(s): Nokia N93
Compatibility
Platform(s): S60 3rd Edition (initial release)
Article
Created: User:Technical writer 1
(17 Oct 2007)
Last edited: hamishwillee
(24 Apr 2013)
Description
SetAlpha() is used to set the transparency factor. However, the color's alpha information is not drawn when it is used with SetPenStyle() with ENullPen in the Nokia N93.
How to reproduce
The following code snippet can be used to reproduce this
TRgb col2 = KRgbYellow;
col2.SetAlpha(75);
gc.SetBrushColor(col2);
gc.SetPenStyle(CGraphicsContext::ENullPen);
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
gc.DrawRect(rect);
Solution
The code below could solve this problem.
gc.SetPenStyle(CGraphicsContext::ESolidPen);


(no comments yet)