PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework GDI/XAML & Alpha Blending

Reply

GDI/XAML & Alpha Blending

 
Thread Tools Rate Thread
Old 31-10-2007, 08:28 PM   #1
=?Utf-8?B?U2ltb24=?=
Guest
 
Posts: n/a
Default GDI/XAML & Alpha Blending


Hey gang.

I have been really wanting to render some simple XAML for button / UI
styling in Windows Mobile apps and I'm not sure if this is coming any time
soon or not to the CF so I have a few questions.

I am thinking of writting a simple XML parser to take simple XAML shapes and
render them. I would like to support gradients with alpha transparency.

My challenge is I know with the Alpha Blending API you take a back buffer
and blend it with your new image. However I want the controls to be
owner-drawn but still blend with the overall Winforms application UI.

Is this possible? Is there a way to get the current bitmap of what is behind
the control that is trying to render in the window?

I'm not sure if its going to be possible to marry Winforms and some limited
vector rendering like this or not.

I envision it as an owner drawn control which you set a property to the XAML
file and it renders it as such which supports some very basic shapes,
gradients and simple animation timelines.

Any thoughts on this?

Thanks and take care.
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off