Re: GDI+ to draw on canvas with alpha channel



Hi Arno,

Thanks for your feedback!

No, please feel free to feedback any concern, I am glad to be of any
assistant.

You can draw on a memory bitmap, using 32bpp PARGB format for example, and
have the alpha accumulate in the bitmap. Pseudocode might look like this:

Bitmap b( x, y, 32bppPARGB )
{ Graphics g( b )
g.Clear( Color(0,0,0,0) )
DrawStuffWithAlpha(g) }
// Note that b now contains alpha drawing

If you have a counter-example or further questions, please feel free to
post, I will work with you. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: Internationalization - Right To Left Mirroring with MFC and toolba
    ... toolbar being arranged RTL in your MDI application. ... there are two ways to avoid a bitmap RTL: ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vc.mfc)
  • RE: Internationalization - Right To Left Mirroring with MFC and to
    ... there are two ways to avoid a bitmap RTL: ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vc.mfc)
  • Re: object = nothing?
    ... Let's say that you have a private field of bitmap type(note, ... referenced by any references, so it can be collected once the free memory ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vb)
  • Re: winword.exe.manifest for multiple add-ins?
    ... Microsoft Online Community Support ... Get notification to my posts through email? ... where an initial response from the community or a Microsoft Support ... project analysis and dump analysis issues. ...
    (microsoft.public.office.developer.com.add_ins)
  • RE: WMP ActiveX control kills Internet Explorer
    ... utilizes the WMP ActiveX control to play a WMV file. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ... project analysis and dump analysis issues. ...
    (microsoft.public.win32.programmer.mmedia)

Loading